home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Programming / revolutionosx.sit / Revolution 1.1.1 / components / tools / revmenumanager.rev < prev    next >
MetaCard/Revolution Stack  |  2002-04-05  |  161.6 KB  |  [RSTK/Revo]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: MetaCard/Revolution Stack (archive/metaCardStack).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MetaCard/Revolution Stack (archive/metaCardStack) magic Unsupported
100% file POSIX shell script executable (binary data) default
99% file a /bin/sh script executable (binary data) default (weak)
98% file data default
75% TrID MetaCard/Revolution stack (old) default
25% TrID Linux/UNIX shell script default
100% siegfried fmt/1918 MetaCard Stack (2.x) default
100% binwalkID Executable script, shebang: "/bin/sh" default (weak)
100% xdgMime application/x-shellscript default (weak)


id metadata
keyvalue
macFileType[RSTK]
macFileCreator[Revo]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 23 21 2f 62 69 6e 2f 73 | 68 0a 23 20 4d 65 74 61 |#!/bin/s|h.# Meta|
|00000010| 43 61 72 64 20 32 2e 34 | 20 73 74 61 63 6b 0a 23 |Card 2.4| stack.#|
|00000020| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 | The fol|lowing i|
|00000030| 73 20 6e 6f 74 20 41 53 | 43 49 49 20 74 65 78 74 |s not AS|CII text|
|00000040| 2c 0a 23 20 73 6f 20 6e | 6f 77 20 77 6f 75 6c 64 |,.# so n|ow would|
|00000050| 20 62 65 20 61 20 67 6f | 6f 64 20 74 69 6d 65 20 | be a go|od time |
|00000060| 74 6f 20 71 20 6f 75 74 | 20 6f 66 20 6d 6f 72 65 |to q out| of more|
|00000070| 0c 0a 65 78 65 63 20 6d | 63 20 24 30 20 22 24 40 |..exec m|c $0 "$@|
|00000080| 22 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |".......|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00000100| 02 00 00 03 00 00 17 b9 | 00 0f 72 65 76 4d 65 6e |........|..revMen|
|00000110| 75 4d 61 6e 61 67 65 72 | 00 02 00 88 00 00 00 00 |uManager|........|
|00000120| 00 80 00 01 7b 00 bc 01 | 92 01 7d 00 00 00 0b 12 |....{...|..}.....|
|00000130| 63 52 45 56 49 74 65 6d | 73 44 69 73 61 62 6c 65 |cREVItem|sDisable|
|00000140| 64 00 00 00 0c 63 52 45 | 56 4d 65 6e 75 62 61 72 |d....cRE|VMenubar|
|00000150| 00 00 00 0b 63 52 45 56 | 4d 65 6e 75 49 44 00 00 |....cREV|MenuID..|
|00000160| 00 0f 63 52 45 56 4d 65 | 6e 75 4f 62 6a 65 63 74 |..cREVMe|nuObject|
|00000170| 00 00 05 67 72 6f 75 70 | 0c 63 52 45 56 43 6c 6f |...group|.cREVClo|
|00000180| 73 69 6e 67 00 00 04 74 | 72 75 65 15 63 52 45 56 |sing...t|rue.cREV|
|00000190| 4d 65 6e 75 42 75 74 74 | 6f 6e 43 61 72 64 49 44 |MenuButt|onCardID|
|000001a0| 00 00 00 12 63 52 45 56 | 4d 65 6e 75 42 75 74 74 |....cREV|MenuButt|
|000001b0| 6f 6e 49 64 73 00 00 00 | 12 63 52 45 56 4d 65 6e |onIds...|.cREVMen|
|000001c0| 75 62 61 72 4e 75 6d 62 | 65 72 00 00 01 30 11 63 |ubarNumb|er...0.c|
|000001d0| 52 45 56 44 65 66 61 75 | 6c 74 53 74 61 63 6b 00 |REVDefau|ltStack.|
|000001e0| 00 00 09 72 65 76 73 74 | 61 63 6b 00 00 05 66 61 |...revst|ack...fa|
|000001f0| 6c 73 65 17 63 52 45 56 | 46 69 72 73 74 53 65 6c |lse.cREV|FirstSel|
|00000200| 65 63 74 65 64 53 74 61 | 63 6b 00 00 0a 55 6e 74 |ectedSta|ck...Unt|
|00000210| 69 74 6c 65 64 20 31 00 | 00 00 00 00 00 00 00 00 |itled 1.|........|
|00000220| 0d 4d 65 6e 75 20 4d 61 | 6e 61 67 65 72 00 00 00 |.Menu Ma|nager...|
|00000230| 00 0b 00 0a 00 55 00 0a | 48 65 6c 76 65 74 69 63 |.....U..|Helvetic|
|00000240| 61 00 00 0a 10 55 00 0a | 48 65 6c 76 65 74 69 63 |a....U..|Helvetic|
|00000250| 61 00 00 0e 00 55 00 0a | 68 65 6c 76 65 74 69 63 |a....U..|helvetic|
|00000260| 61 00 00 0a 01 55 00 0a | 48 65 6c 76 65 74 69 63 |a....U..|Helvetic|
|00000270| 61 00 00 0a 00 55 00 0a | 75 6e 64 65 72 6c 69 6e |a....U..|underlin|
|00000280| 65 00 00 0a 10 55 00 0e | 4d 53 20 53 61 6e 73 20 |e....U..|MS Sans |
|00000290| 53 65 72 69 66 00 00 0a | 10 55 00 07 47 65 6e 65 |Serif...|.U..Gene|
|000002a0| 76 61 00 00 0a 00 55 00 | 07 47 65 6e 65 76 61 00 |va....U.|.Geneva.|
|000002b0| 00 0a 00 55 00 0e 4d 53 | 20 53 61 6e 73 20 53 65 |...U..MS| Sans Se|
|000002c0| 72 69 66 00 00 0a 00 55 | 00 0e 6d 73 20 73 61 6e |rif....U|..ms san|
|000002d0| 73 20 73 65 72 69 66 00 | 00 0a 10 55 00 0e 6d 73 |s serif.|...U..ms|
|000002e0| 20 73 61 6e 73 20 73 65 | 72 69 66 00 18 00 12 63 | sans se|rif....c|
|000002f0| 52 45 56 47 65 6f 6d 65 | 74 72 79 43 61 63 68 65 |REVGeome|tryCache|
|00000300| 00 00 00 00 01 08 73 74 | 61 63 6b 49 44 00 00 04 |......st|ackID...|
|00000310| 36 30 37 33 18 00 0c 63 | 52 45 56 47 65 6e 65 72 |6073...c|REVGener|
|00000320| 61 6c 00 00 00 00 06 0a | 62 6f 6f 6b 6d 61 72 6b |al......|bookmark|
|00000330| 73 00 00 00 0c 68 61 6e | 64 6c 65 72 4c 69 73 74 |s....han|dlerList|
|00000340| 00 00 00 10 73 63 72 69 | 70 74 53 65 6c 65 63 74 |....scri|ptSelect|
|00000350| 69 6f 6e 00 00 0b 63 68 | 61 72 20 31 20 74 6f 20 |ion...ch|ar 1 to |
|00000360| 30 0c 70 72 65 76 48 61 | 6e 64 6c 65 72 00 00 00 |0.prevHa|ndler...|
|00000370| 0b 74 65 6d 70 53 63 72 | 69 70 74 00 00 00 07 73 |.tempScr|ipt....s|
|00000380| 63 72 69 70 74 00 00 00 | 04 00 00 03 ea 00 0d 4d |cript...|.......M|
|00000390| 65 6e 75 20 4d 61 6e 61 | 67 65 72 00 00 00 09 50 |enu Mana|ger....P|
|000003a0| 42 a8 6f 6e 20 70 72 65 | 4f 70 65 6e 53 74 61 63 |B.on pre|OpenStac|
|000003b0| 6b 0a 20 20 2d 2d 77 69 | 6e 64 6f 77 20 70 6f 73 |k. --wi|ndow pos|
|000003c0| 69 74 69 6f 6e 69 6e 67 | 0a 20 20 70 75 74 20 74 |itioning|. put t|
|000003d0| 68 65 20 63 52 45 56 4d | 65 6e 75 4d 61 6e 61 67 |he cREVM|enuManag|
|000003e0| 65 72 54 6f 70 4c 65 66 | 74 20 6f 66 20 73 74 61 |erTopLef|t of sta|
|000003f0| 63 6b 20 22 72 65 76 50 | 72 65 66 65 72 65 6e 63 |ck "revP|referenc|
|00000400| 65 73 22 20 69 6e 74 6f | 20 74 54 6f 70 4c 65 66 |es" into| tTopLef|
|00000410| 74 0a 20 20 69 66 20 74 | 54 6f 70 4c 65 66 74 20 |t. if t|TopLeft |
|00000420| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00000430| 6e 0a 20 20 20 20 69 66 | 20 69 74 65 6d 20 31 20 |n. if| item 1 |
|00000440| 6f 66 20 74 54 6f 70 4c | 65 66 74 20 2b 20 74 68 |of tTopL|eft + th|
|00000450| 65 20 77 69 64 74 68 20 | 6f 66 20 74 68 69 73 20 |e width |of this |
|00000460| 73 74 61 63 6b 20 3c 20 | 69 74 65 6d 20 33 20 6f |stack < |item 3 o|
|00000470| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 42 6f 75 6e |f the wi|ndowBoun|
|00000480| 64 69 6e 67 52 65 63 74 | 20 5c 0a 20 20 20 20 20 |dingRect| \. |
|00000490| 20 20 20 61 6e 64 20 69 | 74 65 6d 20 32 20 6f 66 | and i|tem 2 of|
|000004a0| 20 74 54 6f 70 4c 65 66 | 74 20 2b 20 74 68 65 20 | tTopLef|t + the |
|000004b0| 68 65 69 67 68 74 20 6f | 66 20 74 68 69 73 20 73 |height o|f this s|
|000004c0| 74 61 63 6b 20 3c 20 69 | 74 65 6d 20 34 20 6f 66 |tack < i|tem 4 of|
|000004d0| 20 74 68 65 20 77 69 6e | 64 6f 77 42 6f 75 6e 64 | the win|dowBound|
|000004e0| 69 6e 67 52 65 63 74 20 | 74 68 65 6e 0a 20 20 20 |ingRect |then. |
|000004f0| 20 20 20 73 65 74 20 74 | 68 65 20 74 6f 70 4c 65 | set t|he topLe|
|00000500| 66 74 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |ft of th|is stack|
|00000510| 20 74 6f 20 74 54 6f 70 | 4c 65 66 74 0a 20 20 20 | to tTop|Left. |
|00000520| 20 65 6c 73 65 20 0a 20 | 20 20 20 20 20 73 65 74 | else . | set|
|00000530| 20 6c 6f 63 20 6f 66 20 | 74 68 69 73 20 73 74 61 | loc of |this sta|
|00000540| 63 6b 20 74 6f 20 74 68 | 65 20 73 63 72 65 65 6e |ck to th|e screen|
|00000550| 4c 6f 63 0a 20 20 20 20 | 65 6e 64 20 69 66 0a 20 |Loc. |end if. |
|00000560| 20 65 6c 73 65 20 73 65 | 74 20 74 68 65 20 6c 6f | else se|t the lo|
|00000570| 63 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 20 |c of thi|s stack |
|00000580| 74 6f 20 74 68 65 20 73 | 63 72 65 65 6e 4c 6f 63 |to the s|creenLoc|
|00000590| 0a 20 20 0a 20 20 72 65 | 76 4d 65 6e 75 4d 61 6e |. . re|vMenuMan|
|000005a0| 61 67 65 72 49 6e 69 74 | 69 61 6c 69 73 61 74 69 |agerInit|ialisati|
|000005b0| 6f 6e 0a 20 20 72 65 76 | 52 65 73 65 74 0a 20 20 |on. rev|Reset. |
|000005c0| 72 65 76 49 6e 69 74 69 | 61 6c 69 73 65 0a 20 20 |revIniti|alise. |
|000005d0| 70 61 73 73 20 70 72 65 | 4f 70 65 6e 53 74 61 63 |pass pre|OpenStac|
|000005e0| 6b 0a 65 6e 64 20 70 72 | 65 4f 70 65 6e 53 74 61 |k.end pr|eOpenSta|
|000005f0| 63 6b 0a 0a 6f 6e 20 72 | 65 73 75 6d 65 53 74 61 |ck..on r|esumeSta|
|00000600| 63 6b 0a 20 20 69 66 20 | 74 68 65 20 68 69 6c 69 |ck. if |the hili|
|00000610| 74 65 20 6f 66 20 62 74 | 6e 20 22 4d 61 63 4f 53 |te of bt|n "MacOS|
|00000620| 20 50 72 65 76 69 65 77 | 22 0a 20 20 74 68 65 6e | Preview|". then|
|00000630| 20 73 65 74 20 74 68 65 | 20 64 65 66 61 75 6c 74 | set the| default|
|00000640| 4d 65 6e 75 42 61 72 20 | 74 6f 20 74 68 65 20 73 |MenuBar |to the s|
|00000650| 68 6f 72 74 20 6e 61 6d | 65 20 6f 66 20 62 67 20 |hort nam|e of bg |
|00000660| 69 64 20 28 74 68 65 20 | 63 52 45 56 4d 65 6e 75 |id (the |cREVMenu|
|00000670| 49 44 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |ID of th|is stack|
|00000680| 29 20 5c 0a 20 20 20 20 | 20 20 6f 66 20 73 74 61 |) \. | of sta|
|00000690| 63 6b 20 28 74 68 65 20 | 63 52 45 56 44 65 66 61 |ck (the |cREVDefa|
|000006a0| 75 6c 74 53 74 61 63 6b | 20 6f 66 20 74 68 69 73 |ultStack| of this|
|000006b0| 20 73 74 61 63 6b 29 0a | 65 6e 64 20 72 65 73 75 | stack).|end resu|
|000006c0| 6d 65 53 74 61 63 6b 0a | 0a 6f 6e 20 64 65 6c 65 |meStack.|.on dele|
|000006d0| 74 65 4b 65 79 0a 20 20 | 69 66 20 74 68 65 20 74 |teKey. |if the t|
|000006e0| 61 72 67 65 74 20 69 73 | 20 6d 65 0a 20 20 74 68 |arget is| me. th|
|000006f0| 65 6e 20 63 6c 69 63 6b | 20 61 74 20 74 68 65 20 |en click| at the |
|00000700| 6c 6f 63 20 6f 66 20 62 | 74 6e 20 22 44 65 6c 65 |loc of b|tn "Dele|
|00000710| 74 65 20 4d 65 6e 75 22 | 0a 20 20 70 61 73 73 20 |te Menu"|. pass |
|00000720| 64 65 6c 65 74 65 4b 65 | 79 0a 65 6e 64 20 64 65 |deleteKe|y.end de|
|00000730| 6c 65 74 65 4b 65 79 0a | 0a 6f 6e 20 72 65 76 4d |leteKey.|.on revM|
|00000740| 65 6e 75 4d 61 6e 61 67 | 65 72 49 6e 69 74 69 61 |enuManag|erInitia|
|00000750| 6c 69 73 61 74 69 6f 6e | 0a 20 20 67 6c 6f 62 61 |lisation|. globa|
|00000760| 6c 20 67 52 45 56 54 65 | 78 74 48 65 69 67 68 74 |l gREVTe|xtHeight|
|00000770| 0a 20 20 2d 2d 73 74 75 | 66 66 20 74 68 61 74 20 |. --stu|ff that |
|00000780| 6f 6e 6c 79 20 6e 65 65 | 64 73 20 74 6f 20 62 65 |only nee|ds to be|
|00000790| 20 64 6f 6e 65 20 6f 6e | 63 65 0a 20 20 2d 2d 69 | done on|ce. --i|
|000007a0| 6e 69 74 69 61 6c 69 73 | 61 74 69 6f 6e 0a 20 20 |nitialis|ation. |
|000007b0| 69 66 20 67 52 45 56 54 | 65 78 74 48 65 69 67 68 |if gREVT|extHeigh|
|000007c0| 74 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 20 |t is emp|ty then |
|000007d0| 70 75 74 20 31 36 20 69 | 6e 74 6f 20 67 52 45 56 |put 16 i|nto gREV|
|000007e0| 54 65 78 74 48 65 69 67 | 68 74 0a 20 20 73 65 74 |TextHeig|ht. set|
|000007f0| 20 74 68 65 20 74 65 78 | 74 48 65 69 67 68 74 20 | the tex|tHeight |
|00000800| 6f 66 20 66 6c 64 20 22 | 4d 65 6e 75 20 42 75 74 |of fld "|Menu But|
|00000810| 74 6f 6e 73 22 20 74 6f | 20 67 52 45 56 54 65 78 |tons" to| gREVTex|
|00000820| 74 48 65 69 67 68 74 0a | 20 20 73 65 74 20 74 68 |tHeight.| set th|
|00000830| 65 20 74 65 78 74 48 65 | 69 67 68 74 20 6f 66 20 |e textHe|ight of |
|00000840| 66 6c 64 20 22 4d 65 6e | 75 20 49 74 65 6d 73 22 |fld "Men|u Items"|
|00000850| 20 74 6f 20 67 52 45 56 | 54 65 78 74 48 65 69 67 | to gREV|TextHeig|
|00000860| 68 74 0a 20 20 72 65 76 | 49 6e 69 74 69 61 6c 69 |ht. rev|Initiali|
|00000870| 73 65 46 69 65 6c 64 49 | 63 6f 6e 73 0a 20 20 0a |seFieldI|cons. .|
|00000880| 20 20 2d 2d 61 76 6f 69 | 64 20 73 65 6e 64 69 6e | --avoi|d sendin|
|00000890| 67 20 6d 65 73 73 61 67 | 65 20 74 72 69 67 67 65 |g messag|e trigge|
|000008a0| 72 65 64 20 62 79 20 63 | 6c 6f 73 65 20 66 69 65 |red by c|lose fie|
|000008b0| 6c 64 20 77 68 65 6e 20 | 74 68 65 20 73 74 61 63 |ld when |the stac|
|000008c0| 6b 20 69 73 20 63 6c 6f | 73 65 64 0a 20 20 73 65 |k is clo|sed. se|
|000008d0| 74 20 74 68 65 20 63 52 | 45 56 43 6c 6f 73 69 6e |t the cR|EVClosin|
|000008e0| 67 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 20 |g of thi|s stack |
|000008f0| 74 6f 20 66 61 6c 73 65 | 0a 20 20 20 20 0a 20 20 |to false|. . |
|00000900| 2d 2d 62 75 67 20 69 6e | 20 74 68 65 20 73 63 72 |--bug in| the scr|
|00000910| 6f 6c 6c 62 61 72 77 69 | 64 74 68 20 6f 6e 20 6d |ollbarwi|dth on m|
|00000920| 6f 74 69 66 20 20 0a 20 | 20 69 66 20 74 68 65 20 |otif . | if the |
|00000930| 6c 6f 6f 6b 41 6e 64 46 | 65 65 6c 20 69 73 20 22 |lookAndF|eel is "|
|00000940| 4d 6f 74 69 66 22 0a 20 | 20 74 68 65 6e 20 73 65 |Motif". | then se|
|00000950| 74 20 74 68 65 20 72 69 | 67 68 74 20 6f 66 20 62 |t the ri|ght of b|
|00000960| 74 6e 20 22 4d 65 6e 75 | 20 49 6e 73 65 72 74 69 |tn "Menu| Inserti|
|00000970| 6f 6e 20 41 72 72 6f 77 | 22 20 74 6f 20 31 34 30 |on Arrow|" to 140|
|00000980| 0a 20 20 65 6c 73 65 20 | 73 65 74 20 74 68 65 20 |. else |set the |
|00000990| 72 69 67 68 74 20 6f 66 | 20 62 74 6e 20 22 4d 65 |right of| btn "Me|
|000009a0| 6e 75 20 49 6e 73 65 72 | 74 69 6f 6e 20 41 72 72 |nu Inser|tion Arr|
|000009b0| 6f 77 22 20 74 6f 20 31 | 34 34 0a 20 20 0a 20 20 |ow" to 1|44. . |
|000009c0| 2d 2d 73 68 6f 77 49 6e | 76 69 73 69 62 6c 65 73 |--showIn|visibles|
|000009d0| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 73 65 6c 65 | compati|ble sele|
|000009e0| 63 74 69 6f 6e 20 6f 66 | 20 64 69 66 66 65 72 65 |ction of| differe|
|000009f0| 6e 74 20 70 72 65 76 69 | 65 77 20 61 63 63 6f 72 |nt previ|ew accor|
|00000a00| 64 69 6e 67 20 74 6f 20 | 70 6c 61 74 66 6f 72 6d |ding to |platform|
|00000a10| 0a 20 20 2d 2d 4d 61 63 | 4f 53 20 68 61 73 20 63 |. --Mac|OS has c|
|00000a20| 68 65 63 6b 62 6f 78 20 | 74 6f 20 70 72 65 76 69 |heckbox |to previ|
|00000a30| 65 77 20 6d 65 6e 75 20 | 62 61 72 0a 20 20 2d 2d |ew menu |bar. --|
|00000a40| 57 69 6e 64 6f 77 73 2f | 55 6e 69 78 20 68 61 73 |Windows/|Unix has|
|00000a50| 20 61 20 6d 65 6e 75 20 | 62 75 74 74 6f 6e 20 77 | a menu |button w|
|00000a60| 68 69 63 68 20 70 72 65 | 76 69 65 77 73 20 74 68 |hich pre|views th|
|00000a70| 65 20 73 65 6c 65 63 74 | 65 64 20 6d 65 6e 75 0a |e select|ed menu.|
|00000a80| 20 20 0a 20 20 69 66 20 | 74 68 65 20 70 6c 61 74 | . if |the plat|
|00000a90| 66 6f 72 6d 20 69 73 20 | 22 4d 61 63 4f 53 22 20 |form is |"MacOS" |
|00000aa0| 20 74 68 65 6e 20 20 20 | 20 20 0a 20 20 20 20 73 | then | . s|
|00000ab0| 65 74 20 74 68 65 20 74 | 6f 70 4c 65 66 74 20 6f |et the t|opLeft o|
|00000ac0| 66 20 62 74 6e 20 22 4d | 61 63 4f 53 20 50 72 65 |f btn "M|acOS Pre|
|00000ad0| 76 69 65 77 22 20 74 6f | 20 74 68 65 20 63 54 6f |view" to| the cTo|
|00000ae0| 70 4c 65 66 74 20 6f 66 | 20 62 74 6e 20 22 4d 61 |pLeft of| btn "Ma|
|00000af0| 63 4f 53 20 50 72 65 76 | 69 65 77 22 0a 20 20 20 |cOS Prev|iew". |
|00000b00| 20 73 65 74 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 | set the| bottom |
|00000b10| 6f 66 20 67 72 70 20 22 | 57 69 6e 64 6f 77 73 20 |of grp "|Windows |
|00000b20| 50 72 65 76 69 65 77 22 | 20 74 6f 20 2d 31 30 30 |Preview"| to -100|
|00000b30| 0a 20 20 65 6c 73 65 20 | 0a 20 20 20 20 73 65 74 |. else |. set|
|00000b40| 20 74 68 65 20 62 6f 74 | 74 6f 6d 20 6f 66 20 62 | the bot|tom of b|
|00000b50| 74 6e 20 22 4d 61 63 4f | 53 20 50 72 65 76 69 65 |tn "MacO|S Previe|
|00000b60| 77 22 20 74 6f 20 2d 31 | 30 30 0a 20 20 20 20 73 |w" to -1|00. s|
|00000b70| 65 74 20 74 68 65 20 62 | 6f 74 74 6f 6d 20 6f 66 |et the b|ottom of|
|00000b80| 20 67 72 70 20 22 57 69 | 6e 64 6f 77 73 20 50 72 | grp "Wi|ndows Pr|
|00000b90| 65 76 69 65 77 22 20 74 | 6f 20 32 34 0a 20 20 65 |eview" t|o 24. e|
|00000ba0| 6e 64 20 69 66 20 20 20 | 0a 20 20 20 0a 20 20 73 |nd if |. . s|
|00000bb0| 65 74 20 74 68 65 20 63 | 52 45 56 46 69 72 73 74 |et the c|REVFirst|
|00000bc0| 53 65 6c 65 63 74 65 64 | 53 74 61 63 6b 20 6f 66 |Selected|Stack of|
|00000bd0| 20 74 68 69 73 20 73 74 | 61 63 6b 20 74 6f 20 65 | this st|ack to e|
|00000be0| 6d 70 74 79 20 20 0a 65 | 6e 64 20 72 65 76 4d 65 |mpty .e|nd revMe|
|00000bf0| 6e 75 4d 61 6e 61 67 65 | 72 49 6e 69 74 69 61 6c |nuManage|rInitial|
|00000c00| 69 73 61 74 69 6f 6e 0a | 0a 6f 6e 20 72 65 76 52 |isation.|.on revR|
|00000c10| 65 73 65 74 0a 20 20 70 | 75 74 20 65 6d 70 74 79 |eset. p|ut empty|
|00000c20| 20 69 6e 74 6f 20 66 6c | 64 20 22 4d 65 6e 75 62 | into fl|d "Menub|
|00000c30| 61 72 22 0a 20 20 70 75 | 74 20 65 6d 70 74 79 20 |ar". pu|t empty |
|00000c40| 69 6e 74 6f 20 66 6c 64 | 20 22 4d 65 6e 75 20 42 |into fld| "Menu B|
|00000c50| 75 74 74 6f 6e 73 22 0a | 20 20 73 65 74 20 74 68 |uttons".| set th|
|00000c60| 65 20 63 52 45 56 4d 65 | 6e 75 42 75 74 74 6f 6e |e cREVMe|nuButton|
|00000c70| 43 61 72 64 49 44 20 6f | 66 20 74 68 69 73 20 73 |CardID o|f this s|
|00000c80| 74 61 63 6b 20 74 6f 20 | 65 6d 70 74 79 0a 20 20 |tack to |empty. |
|00000c90| 73 65 74 20 74 68 65 20 | 63 52 45 56 4d 65 6e 75 |set the |cREVMenu|
|00000ca0| 62 61 72 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |bar of t|his stac|
|00000cb0| 6b 20 74 6f 20 65 6d 70 | 74 79 0a 20 20 73 65 74 |k to emp|ty. set|
|00000cc0| 20 74 68 65 20 63 52 45 | 56 44 65 66 61 75 6c 74 | the cRE|VDefault|
|00000cd0| 53 74 61 63 6b 20 6f 66 | 20 74 68 69 73 20 73 74 |Stack of| this st|
|00000ce0| 61 63 6b 20 74 6f 20 65 | 6d 70 74 79 0a 20 20 73 |ack to e|mpty. s|
|00000cf0| 65 74 20 74 68 65 20 63 | 52 45 56 4d 65 6e 75 42 |et the c|REVMenuB|
|00000d00| 75 74 74 6f 6e 49 44 73 | 20 6f 66 20 74 68 69 73 |uttonIDs| of this|
|00000d10| 20 73 74 61 63 6b 20 74 | 6f 20 65 6d 70 74 79 0a | stack t|o empty.|
|00000d20| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 49 74 | set th|e cREVIt|
|00000d30| 65 6d 73 44 69 73 61 62 | 6c 65 64 20 6f 66 20 74 |emsDisab|led of t|
|00000d40| 68 69 73 20 73 74 61 63 | 6b 20 74 6f 20 65 6d 70 |his stac|k to emp|
|00000d50| 74 79 0a 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |ty. set| the cRE|
|00000d60| 56 4d 65 6e 75 62 61 72 | 4e 75 6d 62 65 72 20 6f |VMenubar|Number o|
|00000d70| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 74 6f 20 |f this s|tack to |
|00000d80| 30 0a 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 |0. set |the cREV|
|00000d90| 4d 65 6e 75 49 44 20 6f | 66 20 74 68 69 73 20 73 |MenuID o|f this s|
|00000da0| 74 61 63 6b 20 74 6f 20 | 65 6d 70 74 79 0a 20 20 |tack to |empty. |
|00000db0| 73 65 74 20 74 68 65 20 | 74 69 74 6c 65 20 6f 66 |set the |title of|
|00000dc0| 20 74 68 69 73 20 73 74 | 61 63 6b 20 74 6f 20 22 | this st|ack to "|
|00000dd0| 4d 65 6e 75 20 4d 61 6e | 61 67 65 72 22 0a 65 6e |Menu Man|ager".en|
|00000de0| 64 20 72 65 76 52 65 73 | 65 74 0a 0a 6f 6e 20 63 |d revRes|et..on c|
|00000df0| 6c 6f 73 65 53 74 61 63 | 6b 52 65 71 75 65 73 74 |loseStac|kRequest|
|00000e00| 0a 20 20 2d 2d 61 76 6f | 69 64 20 73 65 6e 64 69 |. --avo|id sendi|
|00000e10| 6e 67 20 6d 65 73 73 61 | 67 65 73 20 74 72 69 67 |ng messa|ges trig|
|00000e20| 67 65 72 65 64 20 62 79 | 20 63 6c 6f 73 65 46 69 |gered by| closeFi|
|00000e30| 65 6c 64 0a 20 20 2d 2d | 77 68 65 6e 20 74 68 65 |eld. --|when the|
|00000e40| 20 73 74 61 63 6b 20 69 | 73 20 61 63 74 75 61 6c | stack i|s actual|
|00000e50| 6c 79 20 63 6c 6f 73 69 | 6e 67 0a 20 20 73 65 74 |ly closi|ng. set|
|00000e60| 20 74 68 65 20 63 52 45 | 56 43 6c 6f 73 69 6e 67 | the cRE|VClosing|
|00000e70| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 20 74 | of this| stack t|
|00000e80| 6f 20 74 72 75 65 0a 20 | 20 70 61 73 73 20 63 6c |o true. | pass cl|
|00000e90| 6f 73 65 53 74 61 63 6b | 52 65 71 75 65 73 74 0a |oseStack|Request.|
|00000ea0| 65 6e 64 20 63 6c 6f 73 | 65 53 74 61 63 6b 52 65 |end clos|eStackRe|
|00000eb0| 71 75 65 73 74 0a 0a 6f | 6e 20 63 6c 6f 73 65 53 |quest..o|n closeS|
|00000ec0| 74 61 63 6b 0a 20 20 73 | 65 74 20 74 68 65 20 64 |tack. s|et the d|
|00000ed0| 65 66 61 75 6c 74 4d 65 | 6e 75 62 61 72 20 74 6f |efaultMe|nubar to|
|00000ee0| 20 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | the sho|rt name |
|00000ef0| 6f 66 20 67 72 70 20 22 | 72 65 76 4d 65 6e 75 42 |of grp "|revMenuB|
|00000f00| 61 72 22 20 6f 66 20 63 | 64 20 31 20 6f 66 20 73 |ar" of c|d 1 of s|
|00000f10| 74 61 63 6b 20 22 72 65 | 76 4d 65 6e 75 42 61 72 |tack "re|vMenuBar|
|00000f20| 22 0a 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 |". set |the cREV|
|00000f30| 4d 65 6e 75 4d 61 6e 61 | 67 65 72 54 6f 70 6c 65 |MenuMana|gerTople|
|00000f40| 66 74 20 6f 66 20 73 74 | 61 63 6b 20 22 72 65 76 |ft of st|ack "rev|
|00000f50| 50 72 65 66 65 72 65 6e | 63 65 73 22 20 74 6f 20 |Preferen|ces" to |
|00000f60| 74 68 65 20 74 6f 70 4c | 65 66 74 20 6f 66 20 74 |the topL|eft of t|
|00000f70| 68 69 73 20 73 74 61 63 | 6b 0a 20 20 70 61 73 73 |his stac|k. pass|
|00000f80| 20 63 6c 6f 73 65 53 74 | 61 63 6b 0a 65 6e 64 20 | closeSt|ack.end |
|00000f90| 63 6c 6f 73 65 53 74 61 | 63 6b 0a 0a 6f 6e 20 72 |closeSta|ck..on r|
|00000fa0| 65 76 49 6e 69 74 69 61 | 6c 69 73 65 46 69 65 6c |evInitia|liseFiel|
|00000fb0| 64 49 63 6f 6e 73 0a 20 | 20 2d 2d 63 6c 6f 6e 65 |dIcons. | --clone|
|00000fc0| 20 66 6f 6c 64 6f 75 74 | 20 74 72 69 61 6e 67 6c | foldout| triangl|
|00000fd0| 65 73 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |es accor|ding to |
|00000fe0| 73 69 7a 65 20 6f 66 20 | 49 74 65 6d 73 20 66 6c |size of |Items fl|
|00000ff0| 64 0a 20 20 67 6c 6f 62 | 61 6c 20 67 52 45 56 54 |d. glob|al gREVT|
|00001000| 65 78 74 48 65 69 67 68 | 74 0a 20 20 6c 6f 63 6b |extHeigh|t. lock|
|00001010| 20 73 63 72 65 65 6e 0a | 20 20 6c 6f 63 6b 20 6d | screen.| lock m|
|00001020| 65 73 73 61 67 65 73 0a | 20 20 70 75 74 20 74 68 |essages.| put th|
|00001030| 65 20 6e 75 6d 20 6f 66 | 20 62 74 6e 73 20 69 6e |e num of| btns in|
|00001040| 20 67 72 70 20 22 46 6f | 6c 64 6f 75 74 20 54 72 | grp "Fo|ldout Tr|
|00001050| 69 61 6e 67 6c 65 73 22 | 20 69 6e 74 6f 20 74 4e |iangles"| into tN|
|00001060| 75 6d 4f 6c 64 42 75 74 | 74 6f 6e 73 0a 20 20 69 |umOldBut|tons. i|
|00001070| 66 20 74 4e 75 6d 4f 6c | 64 42 75 74 74 6f 6e 73 |f tNumOl|dButtons|
|00001080| 20 3e 20 31 20 74 68 65 | 6e 0a 20 20 20 20 72 65 | > 1 the|n. re|
|00001090| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 74 4e |peat wit|h i = tN|
|000010a0| 75 6d 4f 6c 64 42 75 74 | 74 6f 6e 73 20 64 6f 77 |umOldBut|tons dow|
|000010b0| 6e 20 74 6f 20 32 0a 20 | 20 20 20 20 20 64 65 6c |n to 2. | del|
|000010c0| 65 74 65 20 62 74 6e 20 | 69 20 6f 66 20 67 72 70 |ete btn |i of grp|
|000010d0| 20 22 46 6f 6c 64 6f 75 | 74 20 54 72 69 61 6e 67 | "Foldou|t Triang|
|000010e0| 6c 65 73 22 0a 20 20 20 | 20 65 6e 64 20 72 65 70 |les". | end rep|
|000010f0| 65 61 74 0a 20 20 65 6e | 64 20 69 66 0a 20 20 0a |eat. en|d if. .|
|00001100| 20 20 69 66 20 74 68 65 | 20 70 6c 61 74 66 6f 72 | if the| platfor|
|00001110| 6d 20 69 73 20 22 4d 61 | 63 4f 53 22 20 74 68 65 |m is "Ma|cOS" the|
|00001120| 6e 0a 20 20 20 20 73 65 | 74 20 74 68 65 20 69 63 |n. se|t the ic|
|00001130| 6f 6e 20 6f 66 20 62 74 | 6e 20 31 20 6f 66 20 67 |on of bt|n 1 of g|
|00001140| 72 70 20 22 46 6f 6c 64 | 6f 75 74 20 54 72 69 61 |rp "Fold|out Tria|
|00001150| 6e 67 6c 65 73 22 20 74 | 6f 20 32 30 30 39 34 36 |ngles" t|o 200946|
|00001160| 0a 20 20 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |. set| the cRE|
|00001170| 56 49 63 6f 6e 20 6f 66 | 20 62 74 6e 20 31 20 6f |VIcon of| btn 1 o|
|00001180| 66 20 67 72 70 20 22 46 | 6f 6c 64 6f 75 74 20 54 |f grp "F|oldout T|
|00001190| 72 69 61 6e 67 6c 65 73 | 22 20 74 6f 20 32 30 30 |riangles|" to 200|
|000011a0| 39 34 36 0a 20 20 20 20 | 73 65 74 20 74 68 65 20 |946. |set the |
|000011b0| 68 69 6c 69 74 65 49 63 | 6f 6e 20 6f 66 20 62 74 |hiliteIc|on of bt|
|000011c0| 6e 20 31 20 6f 66 20 67 | 72 70 20 22 46 6f 6c 64 |n 1 of g|rp "Fold|
|000011d0| 6f 75 74 20 54 72 69 61 | 6e 67 6c 65 73 22 20 74 |out Tria|ngles" t|
|000011e0| 6f 20 32 30 30 39 35 31 | 0a 20 20 65 6c 73 65 0a |o 200951|. else.|
|000011f0| 20 20 20 20 73 65 74 20 | 74 68 65 20 69 63 6f 6e | set |the icon|
|00001200| 20 6f 66 20 62 74 6e 20 | 31 20 6f 66 20 67 72 70 | of btn |1 of grp|
|00001210| 20 22 46 6f 6c 64 6f 75 | 74 20 54 72 69 61 6e 67 | "Foldou|t Triang|
|00001220| 6c 65 73 22 20 74 6f 20 | 32 30 30 30 38 36 0a 20 |les" to |200086. |
|00001230| 20 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 49 | set t|he cREVI|
|00001240| 63 6f 6e 20 6f 66 20 62 | 74 6e 20 31 20 6f 66 20 |con of b|tn 1 of |
|00001250| 67 72 70 20 22 46 6f 6c | 64 6f 75 74 20 54 72 69 |grp "Fol|dout Tri|
|00001260| 61 6e 67 6c 65 73 22 20 | 74 6f 20 32 30 30 30 38 |angles" |to 20008|
|00001270| 36 0a 20 20 20 20 73 65 | 74 20 74 68 65 20 68 69 |6. se|t the hi|
|00001280| 6c 69 74 65 49 63 6f 6e | 20 6f 66 20 62 74 6e 20 |liteIcon| of btn |
|00001290| 31 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |1 of grp| "Foldou|
|000012a0| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 20 74 6f 20 |t Triang|les" to |
|000012b0| 32 30 30 30 38 37 0a 20 | 20 65 6e 64 20 69 66 0a |200087. | end if.|
|000012c0| 20 20 65 6e 61 62 6c 65 | 20 62 74 6e 20 31 20 6f | enable| btn 1 o|
|000012d0| 66 20 67 72 70 20 22 46 | 6f 6c 64 6f 75 74 20 54 |f grp "F|oldout T|
|000012e0| 72 69 61 6e 67 6c 65 73 | 22 0a 20 20 75 6e 68 69 |riangles|". unhi|
|000012f0| 6c 69 74 65 20 62 74 6e | 20 31 20 6f 66 20 67 72 |lite btn| 1 of gr|
|00001300| 70 20 22 46 6f 6c 64 6f | 75 74 20 54 72 69 61 6e |p "Foldo|ut Trian|
|00001310| 67 6c 65 73 22 0a 20 20 | 73 65 74 20 74 68 65 20 |gles". |set the |
|00001320| 73 68 6f 77 49 63 6f 6e | 20 6f 66 20 62 74 6e 20 |showIcon| of btn |
|00001330| 31 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |1 of grp| "Foldou|
|00001340| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 20 74 6f 20 |t Triang|les" to |
|00001350| 66 61 6c 73 65 0a 20 20 | 0a 20 20 70 75 74 20 72 |false. |. put r|
|00001360| 6f 75 6e 64 28 28 74 68 | 65 20 68 65 69 67 68 74 |ound((th|e height|
|00001370| 20 6f 66 20 66 6c 64 20 | 22 4d 65 6e 75 20 49 74 | of fld |"Menu It|
|00001380| 65 6d 73 22 29 2f 67 52 | 45 56 54 65 78 74 48 65 |ems")/gR|EVTextHe|
|00001390| 69 67 68 74 29 20 69 6e | 74 6f 20 74 4e 75 6d 4c |ight) in|to tNumL|
|000013a0| 69 6e 65 73 0a 20 20 70 | 75 74 20 74 68 65 20 74 |ines. p|ut the t|
|000013b0| 6f 70 4c 65 66 74 20 6f | 66 20 62 74 6e 20 31 20 |opLeft o|f btn 1 |
|000013c0| 6f 66 20 67 72 70 20 22 | 46 6f 6c 64 6f 75 74 20 |of grp "|Foldout |
|000013d0| 54 72 69 61 6e 67 6c 65 | 73 22 20 69 6e 74 6f 20 |Triangle|s" into |
|000013e0| 74 54 6f 70 4c 65 66 74 | 0a 20 20 72 65 70 65 61 |tTopLeft|. repea|
|000013f0| 74 20 77 69 74 68 20 69 | 20 3d 20 32 20 74 6f 20 |t with i| = 2 to |
|00001400| 74 4e 75 6d 4c 69 6e 65 | 73 0a 20 20 20 20 63 6c |tNumLine|s. cl|
|00001410| 6f 6e 65 20 62 74 6e 20 | 31 20 6f 66 20 67 72 70 |one btn |1 of grp|
|00001420| 20 22 46 6f 6c 64 6f 75 | 74 20 54 72 69 61 6e 67 | "Foldou|t Triang|
|00001430| 6c 65 73 22 20 20 20 20 | 0a 20 20 20 20 61 64 64 |les" |. add|
|00001440| 20 67 52 45 56 54 65 78 | 74 48 65 69 67 68 74 20 | gREVTex|tHeight |
|00001450| 74 6f 20 69 74 65 6d 20 | 32 20 6f 66 20 74 54 6f |to item |2 of tTo|
|00001460| 70 4c 65 66 74 0a 20 20 | 20 20 73 65 74 20 74 68 |pLeft. | set th|
|00001470| 65 20 74 6f 70 4c 65 66 | 74 20 6f 66 20 62 74 6e |e topLef|t of btn|
|00001480| 20 69 20 6f 66 20 67 72 | 70 20 22 46 6f 6c 64 6f | i of gr|p "Foldo|
|00001490| 75 74 20 54 72 69 61 6e | 67 6c 65 73 22 20 74 6f |ut Trian|gles" to|
|000014a0| 20 74 54 6f 70 4c 65 66 | 74 0a 20 20 65 6e 64 20 | tTopLef|t. end |
|000014b0| 72 65 70 65 61 74 0a 20 | 20 75 6e 6c 6f 63 6b 20 |repeat. | unlock |
|000014c0| 6d 65 73 73 61 67 65 73 | 0a 20 20 75 6e 6c 6f 63 |messages|. unloc|
|000014d0| 6b 20 73 63 72 65 65 6e | 0a 65 6e 64 20 72 65 76 |k screen|.end rev|
|000014e0| 49 6e 69 74 69 61 6c 69 | 73 65 46 69 65 6c 64 49 |Initiali|seFieldI|
|000014f0| 63 6f 6e 73 0a 0a 6f 6e | 20 72 65 76 4c 61 79 6f |cons..on| revLayo|
|00001500| 75 74 4d 65 6e 75 42 75 | 74 74 6f 6e 73 0a 20 20 |utMenuBu|ttons. |
|00001510| 2d 2d 6c 61 79 6f 75 74 | 20 62 75 74 74 6f 6e 73 |--layout| buttons|
|00001520| 20 66 72 6f 6d 20 6c 65 | 66 74 20 74 6f 20 72 69 | from le|ft to ri|
|00001530| 67 68 74 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |ght acco|rding to|
|00001540| 20 6f 72 64 65 72 20 69 | 6e 20 4d 65 6e 75 20 42 | order i|n Menu B|
|00001550| 75 74 74 6f 6e 73 20 66 | 69 65 6c 64 0a 20 20 2d |uttons f|ield. -|
|00001560| 2d 61 6e 64 20 73 65 74 | 20 74 68 65 20 76 69 73 |-and set| the vis|
|00001570| 75 61 6c 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |ual repr|esentati|
|00001580| 6f 6e 20 6f 66 20 74 68 | 65 20 6d 65 6e 75 20 6d |on of th|e menu m|
|00001590| 6e 65 6d 6f 6e 69 63 73 | 0a 20 20 70 75 74 20 74 |nemonics|. put t|
|000015a0| 68 65 20 63 52 45 56 4d | 65 6e 75 42 75 74 74 6f |he cREVM|enuButto|
|000015b0| 6e 49 44 73 20 6f 66 20 | 74 68 69 73 20 73 74 61 |nIDs of |this sta|
|000015c0| 63 6b 20 69 6e 74 6f 20 | 74 4d 65 6e 75 42 75 74 |ck into |tMenuBut|
|000015d0| 74 6f 6e 49 44 73 0a 20 | 20 70 75 74 20 74 68 65 |tonIDs. | put the|
|000015e0| 20 63 52 45 56 4d 65 6e | 75 49 44 20 6f 66 20 74 | cREVMen|uID of t|
|000015f0| 68 69 73 20 73 74 61 63 | 6b 20 69 6e 74 6f 20 74 |his stac|k into t|
|00001600| 4d 65 6e 75 49 44 0a 20 | 20 70 75 74 20 74 68 65 |MenuID. | put the|
|00001610| 20 63 52 45 56 4d 65 6e | 75 42 75 74 74 6f 6e 43 | cREVMen|uButtonC|
|00001620| 61 72 64 49 44 20 6f 66 | 20 74 68 69 73 20 73 74 |ardID of| this st|
|00001630| 61 63 6b 20 69 6e 74 6f | 20 74 43 61 72 64 49 44 |ack into| tCardID|
|00001640| 0a 20 20 70 75 74 20 31 | 20 69 6e 74 6f 20 74 4e |. put 1| into tN|
|00001650| 65 78 74 4c 65 66 74 0a | 20 20 20 0a 20 20 73 65 |extLeft.| . se|
|00001660| 74 20 74 68 65 20 64 65 | 66 61 75 6c 74 53 74 61 |t the de|faultSta|
|00001670| 63 6b 20 74 6f 20 74 68 | 65 20 63 52 45 56 44 65 |ck to th|e cREVDe|
|00001680| 66 61 75 6c 74 53 74 61 | 63 6b 20 6f 66 20 74 68 |faultSta|ck of th|
|00001690| 69 73 20 73 74 61 63 6b | 0a 20 20 2d 2d 61 72 72 |is stack|. --arr|
|000016a0| 61 6e 67 65 20 72 65 63 | 74 20 6f 66 20 62 74 6e |ange rec|t of btn|
|000016b0| 73 20 66 6f 72 20 70 72 | 6f 70 65 72 20 70 6f 73 |s for pr|oper pos|
|000016c0| 69 74 69 6f 6e 69 6e 67 | 20 69 6e 20 73 74 61 63 |itioning| in stac|
|000016d0| 6b 20 77 69 6e 64 6f 77 | 0a 20 20 72 65 70 65 61 |k window|. repea|
|000016e0| 74 20 66 6f 72 20 65 61 | 63 68 20 6c 69 6e 65 20 |t for ea|ch line |
|000016f0| 6c 20 69 6e 20 74 4d 65 | 6e 75 42 75 74 74 6f 6e |l in tMe|nuButton|
|00001700| 49 44 73 0a 20 20 20 20 | 73 65 74 20 74 68 65 20 |IDs. |set the |
|00001710| 72 65 63 74 20 6f 66 20 | 62 74 6e 20 69 64 20 6c |rect of |btn id l|
|00001720| 20 6f 66 20 62 67 20 69 | 64 20 74 4d 65 6e 75 49 | of bg i|d tMenuI|
|00001730| 44 20 74 6f 20 74 4e 65 | 78 74 4c 65 66 74 2c 20 |D to tNe|xtLeft, |
|00001740| 2d 31 2c 20 74 4e 65 78 | 74 4c 65 66 74 20 2b 20 |-1, tNex|tLeft + |
|00001750| 74 68 65 20 66 6f 72 6d | 61 74 74 65 64 57 69 64 |the form|attedWid|
|00001760| 74 68 20 6f 66 20 62 74 | 6e 20 69 64 20 6c 20 6f |th of bt|n id l o|
|00001770| 66 20 62 67 20 69 64 20 | 74 4d 65 6e 75 49 44 20 |f bg id |tMenuID |
|00001780| 2b 20 34 2c 20 2d 31 20 | 2b 20 74 68 65 20 66 6f |+ 4, -1 |+ the fo|
|00001790| 72 6d 61 74 74 65 64 48 | 65 69 67 68 74 20 6f 66 |rmattedH|eight of|
|000017a0| 20 62 74 6e 20 69 64 20 | 6c 20 6f 66 20 62 67 20 | btn id |l of bg |
|000017b0| 69 64 20 74 4d 65 6e 75 | 49 44 20 2d 32 0a 20 20 |id tMenu|ID -2. |
|000017c0| 20 20 61 64 64 20 74 68 | 65 20 77 69 64 74 68 20 | add th|e width |
|000017d0| 6f 66 20 62 74 6e 20 69 | 64 20 6c 20 6f 66 20 62 |of btn i|d l of b|
|000017e0| 67 20 69 64 20 74 4d 65 | 6e 75 49 44 20 74 6f 20 |g id tMe|nuID to |
|000017f0| 74 4e 65 78 74 4c 65 66 | 74 0a 20 20 65 6e 64 20 |tNextLef|t. end |
|00001800| 72 65 70 65 61 74 0a 20 | 20 2d 2d 61 72 72 61 6e |repeat. | --arran|
|00001810| 67 65 20 6c 61 79 65 72 | 20 6f 66 20 62 74 6e 73 |ge layer| of btns|
|00001820| 20 66 6f 72 20 70 72 6f | 70 65 72 20 70 6f 73 69 | for pro|per posi|
|00001830| 74 69 6f 6e 69 6e 67 20 | 6f 6e 20 4d 61 63 4f 53 |tioning |on MacOS|
|00001840| 20 6d 65 6e 75 62 61 72 | 0a 20 20 6c 6f 63 6b 20 | menubar|. lock |
|00001850| 6d 65 6e 75 73 0a 20 20 | 70 75 74 20 74 68 65 20 |menus. |put the |
|00001860| 72 65 6c 61 79 65 72 47 | 72 6f 75 70 65 64 43 6f |relayerG|roupedCo|
|00001870| 6e 74 72 6f 6c 73 20 69 | 6e 74 6f 20 74 4f 72 69 |ntrols i|nto tOri|
|00001880| 67 69 6e 61 6c 52 65 6c | 61 79 65 72 47 72 6f 75 |ginalRel|ayerGrou|
|00001890| 70 65 64 43 6f 6e 74 72 | 6f 6c 73 0a 20 20 70 75 |pedContr|ols. pu|
|000018a0| 74 20 74 68 65 20 6d 65 | 6e 75 42 61 72 20 6f 66 |t the me|nuBar of|
|000018b0| 20 74 68 69 73 20 73 74 | 61 63 6b 20 69 6e 74 6f | this st|ack into|
|000018c0| 20 74 4f 72 69 67 69 6e | 61 6c 4d 65 6e 75 42 61 | tOrigin|alMenuBa|
|000018d0| 72 0a 20 20 70 75 74 20 | 74 68 65 20 64 65 66 61 |r. put |the defa|
|000018e0| 75 6c 74 4d 65 6e 75 42 | 61 72 20 69 6e 74 6f 20 |ultMenuB|ar into |
|000018f0| 74 4f 72 69 67 69 6e 61 | 6c 44 65 66 61 75 6c 74 |tOrigina|lDefault|
|00001900| 4d 65 6e 75 42 61 72 0a | 20 20 0a 20 20 73 65 74 |MenuBar.| . set|
|00001910| 20 74 68 65 20 72 65 6c | 61 79 65 72 47 72 6f 75 | the rel|ayerGrou|
|00001920| 70 65 64 43 6f 6e 74 72 | 6f 6c 73 20 74 6f 20 74 |pedContr|ols to t|
|00001930| 72 75 65 0a 20 20 70 75 | 74 20 74 68 65 20 6e 75 |rue. pu|t the nu|
|00001940| 6d 20 6f 66 20 6c 69 6e | 65 73 20 69 6e 20 74 4d |m of lin|es in tM|
|00001950| 65 6e 75 42 75 74 74 6f | 6e 49 44 73 20 69 6e 74 |enuButto|nIDs int|
|00001960| 6f 20 74 4e 75 6d 4c 69 | 6e 65 73 0a 20 20 70 75 |o tNumLi|nes. pu|
|00001970| 74 20 74 68 65 20 6c 61 | 79 65 72 20 6f 66 20 62 |t the la|yer of b|
|00001980| 67 20 69 64 20 74 4d 65 | 6e 75 49 44 20 2b 20 31 |g id tMe|nuID + 1|
|00001990| 20 69 6e 74 6f 20 74 4c | 61 79 65 72 0a 20 20 72 | into tL|ayer. r|
|000019a0| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 74 |epeat wi|th i = t|
|000019b0| 4e 75 6d 4c 69 6e 65 73 | 20 64 6f 77 6e 20 74 6f |NumLines| down to|
|000019c0| 20 31 0a 20 20 20 20 2d | 2d 73 65 74 20 6c 61 79 | 1. -|-set lay|
|000019d0| 65 72 20 74 6f 20 62 65 | 20 63 6f 72 72 65 63 74 |er to be| correct|
|000019e0| 20 66 6f 72 20 6d 65 6e | 75 62 61 72 20 77 69 74 | for men|ubar wit|
|000019f0| 68 6f 75 74 20 72 65 6d | 6f 76 69 6e 67 20 74 68 |hout rem|oving th|
|00001a00| 65 20 62 75 74 74 6f 6e | 20 66 72 6f 6d 20 74 68 |e button| from th|
|00001a10| 65 20 6d 65 6e 75 20 67 | 72 6f 75 70 0a 20 20 20 |e menu g|roup. |
|00001a20| 20 70 75 74 20 74 68 65 | 20 6c 6f 6e 67 20 69 64 | put the| long id|
|00001a30| 20 6f 66 20 62 74 6e 20 | 69 64 20 28 6c 69 6e 65 | of btn |id (line|
|00001a40| 20 69 20 6f 66 20 74 4d | 65 6e 75 42 75 74 74 6f | i of tM|enuButto|
|00001a50| 6e 49 44 73 29 20 6f 66 | 20 62 67 20 69 64 20 74 |nIDs) of| bg id t|
|00001a60| 4d 65 6e 75 49 44 20 69 | 6e 74 6f 20 74 4d 65 6e |MenuID i|nto tMen|
|00001a70| 75 42 75 74 74 6f 6e 49 | 44 0a 20 20 20 20 73 65 |uButtonI|D. se|
|00001a80| 74 20 74 68 65 20 6c 61 | 79 65 72 20 6f 66 20 74 |t the la|yer of t|
|00001a90| 4d 65 6e 75 42 75 74 74 | 6f 6e 49 44 20 74 6f 20 |MenuButt|onID to |
|00001aa0| 74 4c 61 79 65 72 0a 20 | 20 20 20 2d 2d 74 68 65 |tLayer. | --the|
|00001ab0| 20 6d 6e 65 6d 6f 6e 69 | 63 20 76 69 73 75 61 6c | mnemoni|c visual|
|00001ac0| 20 72 65 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 20 | represe|ntation |
|00001ad0| 69 6e 20 74 68 65 20 4d | 65 6e 75 20 42 75 74 74 |in the M|enu Butt|
|00001ae0| 6f 6e 73 20 66 6c 64 0a | 20 20 20 20 73 65 74 20 |ons fld.| set |
|00001af0| 74 68 65 20 74 65 78 74 | 53 74 79 6c 65 20 6f 66 |the text|Style of|
|00001b00| 20 63 68 61 72 20 28 74 | 68 65 20 6d 6e 65 6d 6f | char (t|he mnemo|
|00001b10| 6e 69 63 20 6f 66 20 74 | 4d 65 6e 75 42 75 74 74 |nic of t|MenuButt|
|00001b20| 6f 6e 49 44 29 20 6f 66 | 20 6c 69 6e 65 20 69 20 |onID) of| line i |
|00001b30| 6f 66 20 66 6c 64 20 22 | 4d 65 6e 75 20 42 75 74 |of fld "|Menu But|
|00001b40| 74 6f 6e 73 22 20 5c 0a | 20 20 20 20 20 20 20 20 |tons" \.| |
|00001b50| 6f 66 20 74 68 69 73 20 | 63 64 20 6f 66 20 73 74 |of this |cd of st|
|00001b60| 61 63 6b 20 22 72 65 76 | 4d 65 6e 75 4d 61 6e 61 |ack "rev|MenuMana|
|00001b70| 67 65 72 22 20 74 6f 20 | 22 75 6e 64 65 72 6c 69 |ger" to |"underli|
|00001b80| 6e 65 22 0a 20 20 65 6e | 64 20 72 65 70 65 61 74 |ne". en|d repeat|
|00001b90| 0a 20 20 0a 20 20 73 65 | 74 20 74 68 65 20 72 65 |. . se|t the re|
|00001ba0| 6c 61 79 65 72 47 72 6f | 75 70 65 64 43 6f 6e 74 |layerGro|upedCont|
|00001bb0| 72 6f 6c 73 20 74 6f 20 | 74 4f 72 69 67 69 6e 61 |rols to |tOrigina|
|00001bc0| 6c 52 65 6c 61 79 65 72 | 47 72 6f 75 70 65 64 43 |lRelayer|GroupedC|
|00001bd0| 6f 6e 74 72 6f 6c 73 0a | 20 20 2d 2d 6e 65 65 64 |ontrols.| --need|
|00001be0| 20 74 6f 20 72 65 73 65 | 74 20 74 68 65 20 6d 65 | to rese|t the me|
|00001bf0| 6e 75 62 61 72 20 74 6f | 20 68 61 76 65 20 69 74 |nubar to| have it|
|00001c00| 20 75 70 64 61 74 65 0a | 20 20 73 65 74 20 74 68 | update.| set th|
|00001c10| 65 20 6d 65 6e 75 42 61 | 72 20 6f 66 20 74 68 69 |e menuBa|r of thi|
|00001c20| 73 20 73 74 61 63 6b 20 | 74 6f 20 65 6d 70 74 79 |s stack |to empty|
|00001c30| 0a 20 20 73 65 74 20 74 | 68 65 20 64 65 66 61 75 |. set t|he defau|
|00001c40| 6c 74 4d 65 6e 75 42 61 | 72 20 74 6f 20 74 68 65 |ltMenuBa|r to the|
|00001c50| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 67 | short n|ame of g|
|00001c60| 72 6f 75 70 20 22 72 65 | 76 4d 65 6e 75 42 61 72 |roup "re|vMenuBar|
|00001c70| 22 20 6f 66 20 63 64 20 | 31 20 6f 66 20 73 74 61 |" of cd |1 of sta|
|00001c80| 63 6b 20 22 72 65 76 4d | 65 6e 75 42 61 72 22 0a |ck "revM|enuBar".|
|00001c90| 20 20 73 65 74 20 74 68 | 65 20 6d 65 6e 75 42 61 | set th|e menuBa|
|00001ca0| 72 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 20 |r of thi|s stack |
|00001cb0| 74 6f 20 74 4f 72 69 67 | 69 6e 61 6c 4d 65 6e 75 |to tOrig|inalMenu|
|00001cc0| 42 61 72 0a 20 20 73 65 | 74 20 74 68 65 20 64 65 |Bar. se|t the de|
|00001cd0| 66 61 75 6c 74 4d 65 6e | 75 42 61 72 20 74 6f 20 |faultMen|uBar to |
|00001ce0| 74 4f 72 69 67 69 6e 61 | 6c 44 65 66 61 75 6c 74 |tOrigina|lDefault|
|00001cf0| 4d 65 6e 75 42 61 72 0a | 20 20 75 6e 6c 6f 63 6b |MenuBar.| unlock|
|00001d00| 20 6d 65 6e 75 73 0a 20 | 20 73 65 74 20 74 68 65 | menus. | set the|
|00001d10| 20 64 65 66 61 75 6c 74 | 53 74 61 63 6b 20 74 6f | default|Stack to|
|00001d20| 20 22 72 65 76 4d 65 6e | 75 4d 61 6e 61 67 65 72 | "revMen|uManager|
|00001d30| 22 0a 65 6e 64 20 72 65 | 76 4c 61 79 6f 75 74 4d |".end re|vLayoutM|
|00001d40| 65 6e 75 42 75 74 74 6f | 6e 73 0a 0a 6f 6e 20 72 |enuButto|ns..on r|
|00001d50| 65 76 49 6e 69 74 69 61 | 6c 69 73 65 0a 20 20 2d |evInitia|lise. -|
|00001d60| 2d 64 69 73 61 62 6c 65 | 20 65 76 65 72 79 74 68 |-disable| everyth|
|00001d70| 69 6e 67 0a 20 20 67 6c | 6f 62 61 6c 20 67 52 45 |ing. gl|obal gRE|
|00001d80| 56 4d 4d 4d 65 6e 75 49 | 74 65 6d 73 2c 20 67 52 |VMMMenuI|tems, gR|
|00001d90| 45 56 41 63 74 69 76 65 | 4d 65 6e 75 42 75 74 74 |EVActive|MenuButt|
|00001da0| 6f 6e 0a 20 20 0a 20 20 | 75 6e 68 69 6c 69 74 65 |on. . |unhilite|
|00001db0| 20 62 74 6e 20 22 4d 61 | 63 4f 53 20 50 72 65 76 | btn "Ma|cOS Prev|
|00001dc0| 69 65 77 22 0a 20 20 73 | 65 74 20 74 68 65 20 64 |iew". s|et the d|
|00001dd0| 65 66 61 75 6c 74 4d 65 | 6e 75 62 61 72 20 74 6f |efaultMe|nubar to|
|00001de0| 20 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | the sho|rt name |
|00001df0| 6f 66 20 67 72 70 20 22 | 72 65 76 4d 65 6e 75 42 |of grp "|revMenuB|
|00001e00| 61 72 22 20 6f 66 20 63 | 64 20 31 20 6f 66 20 73 |ar" of c|d 1 of s|
|00001e10| 74 61 63 6b 20 22 72 65 | 76 4d 65 6e 75 42 61 72 |tack "re|vMenuBar|
|00001e20| 22 0a 20 20 70 75 74 20 | 65 6d 70 74 79 20 69 6e |". put |empty in|
|00001e30| 74 6f 20 67 52 45 56 4d | 4d 4d 65 6e 75 49 74 65 |to gREVM|MMenuIte|
|00001e40| 6d 73 0a 20 20 70 75 74 | 20 65 6d 70 74 79 20 69 |ms. put| empty i|
|00001e50| 6e 74 6f 20 67 52 45 56 | 41 63 74 69 76 65 4d 65 |nto gREV|ActiveMe|
|00001e60| 6e 75 42 75 74 74 6f 6e | 0a 20 20 70 75 74 20 65 |nuButton|. put e|
|00001e70| 6d 70 74 79 20 69 6e 74 | 6f 20 66 6c 64 20 22 4d |mpty int|o fld "M|
|00001e80| 65 6e 75 20 49 74 65 6d | 73 22 0a 20 20 70 75 74 |enu Item|s". put|
|00001e90| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 66 6c 64 20 | empty i|nto fld |
|00001ea0| 22 4d 65 6e 75 20 42 75 | 74 74 6f 6e 73 22 0a 20 |"Menu Bu|ttons". |
|00001eb0| 20 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 | put emp|ty into |
|00001ec0| 66 6c 64 20 22 4d 65 6e | 75 62 61 72 22 0a 20 20 |fld "Men|ubar". |
|00001ed0| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 66 |put empt|y into f|
|00001ee0| 6c 64 20 22 4d 65 6e 75 | 20 4e 61 6d 65 22 0a 20 |ld "Menu| Name". |
|00001ef0| 20 75 6e 68 69 6c 69 74 | 65 20 62 74 6e 20 22 4d | unhilit|e btn "M|
|00001f00| 61 63 4f 53 20 4d 65 6e | 75 20 42 61 72 22 0a 20 |acOS Men|u Bar". |
|00001f10| 20 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 | put emp|ty into |
|00001f20| 66 6c 64 20 22 49 74 65 | 6d 20 4e 61 6d 65 22 0a |fld "Ite|m Name".|
|00001f30| 20 20 73 65 74 20 74 68 | 65 20 62 6f 74 74 6f 6d | set th|e bottom|
|00001f40| 20 6f 66 20 67 72 70 20 | 22 4d 65 6e 75 20 49 6e | of grp |"Menu In|
|00001f50| 73 65 72 74 22 20 74 6f | 20 2d 31 30 30 30 0a 20 |sert" to| -1000. |
|00001f60| 20 73 65 74 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 | set the| bottom |
|00001f70| 6f 66 20 67 72 70 20 22 | 49 74 65 6d 20 49 6e 73 |of grp "|Item Ins|
|00001f80| 65 72 74 22 20 74 6f 20 | 2d 31 30 30 30 0a 20 20 |ert" to |-1000. |
|00001f90| 73 65 74 20 74 68 65 20 | 63 52 45 56 4c 61 73 74 |set the |cREVLast|
|00001fa0| 57 69 64 67 65 74 4c 69 | 6e 65 20 6f 66 20 67 72 |WidgetLi|ne of gr|
|00001fb0| 70 20 22 4d 65 6e 75 20 | 49 6e 73 65 72 74 22 20 |p "Menu |Insert" |
|00001fc0| 74 6f 20 65 6d 70 74 79 | 0a 20 20 73 65 74 20 74 |to empty|. set t|
|00001fd0| 68 65 20 63 52 45 56 4c | 69 6e 65 20 6f 66 20 67 |he cREVL|ine of g|
|00001fe0| 72 70 20 22 4d 65 6e 75 | 20 49 6e 73 65 72 74 22 |rp "Menu| Insert"|
|00001ff0| 20 74 6f 20 65 6d 70 74 | 79 0a 20 20 73 65 74 20 | to empt|y. set |
|00002000| 74 68 65 20 63 52 45 56 | 4c 69 6e 65 20 6f 66 20 |the cREV|Line of |
|00002010| 67 72 70 20 22 49 74 65 | 6d 20 49 6e 73 65 72 74 |grp "Ite|m Insert|
|00002020| 22 20 74 6f 20 65 6d 70 | 74 79 0a 20 20 75 6e 68 |" to emp|ty. unh|
|00002030| 69 6c 69 74 65 20 62 74 | 6e 20 22 44 69 73 61 62 |ilite bt|n "Disab|
|00002040| 6c 65 20 4d 65 6e 75 22 | 20 0a 20 20 75 6e 68 69 |le Menu"| . unhi|
|00002050| 6c 69 74 65 20 62 74 6e | 20 22 4d 65 6e 75 20 4d |lite btn| "Menu M|
|00002060| 6e 65 6d 6f 6e 69 63 22 | 0a 20 20 73 65 74 20 74 |nemonic"|. set t|
|00002070| 68 65 20 6c 61 62 65 6c | 20 6f 66 20 62 74 6e 20 |he label| of btn |
|00002080| 22 49 74 65 6d 20 53 74 | 79 6c 65 22 20 74 6f 20 |"Item St|yle" to |
|00002090| 22 4e 6f 6e 65 22 0a 20 | 20 73 65 74 20 74 68 65 |"None". | set the|
|000020a0| 20 63 52 45 56 4c 61 62 | 65 6c 20 6f 66 20 62 74 | cREVLab|el of bt|
|000020b0| 6e 20 22 50 72 65 76 69 | 65 77 22 20 74 6f 20 65 |n "Previ|ew" to e|
|000020c0| 6d 70 74 79 0a 20 20 70 | 75 74 20 74 68 65 20 6e |mpty. p|ut the n|
|000020d0| 75 6d 20 6f 66 20 63 6f | 6e 74 72 6f 6c 73 20 69 |um of co|ntrols i|
|000020e0| 6e 74 6f 20 74 4e 75 6d | 43 6f 6e 74 72 6f 6c 73 |nto tNum|Controls|
|000020f0| 0a 20 20 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |. repea|t with i|
|00002100| 20 3d 20 31 20 74 6f 20 | 74 4e 75 6d 43 6f 6e 74 | = 1 to |tNumCont|
|00002110| 72 6f 6c 73 0a 20 20 20 | 20 69 66 20 6e 6f 74 20 |rols. | if not |
|00002120| 74 68 65 20 63 52 45 56 | 44 6f 6e 74 44 69 73 61 |the cREV|DontDisa|
|00002130| 62 6c 65 20 6f 66 20 63 | 6f 6e 74 72 6f 6c 20 69 |ble of c|ontrol i|
|00002140| 20 74 68 65 6e 20 64 69 | 73 61 62 6c 65 20 63 6f | then di|sable co|
|00002150| 6e 74 72 6f 6c 20 69 0a | 20 20 65 6e 64 20 72 65 |ntrol i.| end re|
|00002160| 70 65 61 74 0a 20 20 73 | 65 74 20 74 68 65 20 63 |peat. s|et the c|
|00002170| 52 45 56 44 69 73 61 62 | 6c 65 64 20 6f 66 20 62 |REVDisab|led of b|
|00002180| 74 6e 20 22 4d 6f 76 65 | 20 4d 65 6e 75 20 55 70 |tn "Move| Menu Up|
|00002190| 22 20 74 6f 20 74 72 75 | 65 0a 20 20 73 65 74 20 |" to tru|e. set |
|000021a0| 74 68 65 20 63 52 45 56 | 44 69 73 61 62 6c 65 64 |the cREV|Disabled|
|000021b0| 20 6f 66 20 62 74 6e 20 | 22 4d 6f 76 65 20 4d 65 | of btn |"Move Me|
|000021c0| 6e 75 20 44 6f 77 6e 22 | 20 74 6f 20 74 72 75 65 |nu Down"| to true|
|000021d0| 0a 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 44 |. set t|he cREVD|
|000021e0| 69 73 61 62 6c 65 64 20 | 6f 66 20 62 74 6e 20 22 |isabled |of btn "|
|000021f0| 52 65 64 75 63 65 20 49 | 74 65 6d 20 4e 65 73 74 |Reduce I|tem Nest|
|00002200| 69 6e 67 22 20 74 6f 20 | 74 72 75 65 0a 20 20 73 |ing" to |true. s|
|00002210| 65 74 20 74 68 65 20 63 | 52 45 56 44 69 73 61 62 |et the c|REVDisab|
|00002220| 6c 65 64 20 6f 66 20 62 | 74 6e 20 22 49 6e 63 72 |led of b|tn "Incr|
|00002230| 65 61 73 65 20 49 74 65 | 6d 20 4e 65 73 74 69 6e |ease Ite|m Nestin|
|00002240| 67 22 20 74 6f 20 74 72 | 75 65 0a 20 20 73 65 74 |g" to tr|ue. set|
|00002250| 20 74 68 65 20 63 52 45 | 56 44 69 73 61 62 6c 65 | the cRE|VDisable|
|00002260| 64 20 6f 66 20 62 74 6e | 20 22 4d 6f 76 65 20 49 |d of btn| "Move I|
|00002270| 74 65 6d 20 55 70 22 20 | 74 6f 20 74 72 75 65 0a |tem Up" |to true.|
|00002280| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 44 69 | set th|e cREVDi|
|00002290| 73 61 62 6c 65 64 20 6f | 66 20 62 74 6e 20 22 4d |sabled o|f btn "M|
|000022a0| 6f 76 65 20 49 74 65 6d | 20 44 6f 77 6e 22 20 74 |ove Item| Down" t|
|000022b0| 6f 20 74 72 75 65 0a 20 | 20 73 65 74 20 74 68 65 |o true. | set the|
|000022c0| 20 63 52 45 56 44 69 73 | 61 62 6c 65 64 20 6f 66 | cREVDis|abled of|
|000022d0| 20 62 74 6e 20 22 49 6e | 73 65 72 74 20 44 69 76 | btn "In|sert Div|
|000022e0| 69 64 65 72 22 20 74 6f | 20 74 72 75 65 0a 20 20 |ider" to| true. |
|000022f0| 73 65 74 20 74 68 65 20 | 63 52 45 56 44 69 73 61 |set the |cREVDisa|
|00002300| 62 6c 65 64 20 6f 66 20 | 62 74 6e 20 22 53 68 6f |bled of |btn "Sho|
|00002310| 72 74 63 75 74 22 20 74 | 6f 20 74 72 75 65 0a 20 |rtcut" t|o true. |
|00002320| 20 75 6e 68 69 6c 69 74 | 65 20 62 74 6e 20 22 49 | unhilit|e btn "I|
|00002330| 74 65 6d 20 44 69 73 61 | 62 6c 65 22 0a 20 20 75 |tem Disa|ble". u|
|00002340| 6e 68 69 6c 69 74 65 20 | 62 74 6e 20 22 49 74 65 |nhilite |btn "Ite|
|00002350| 6d 20 4d 6e 65 6d 6f 6e | 69 63 22 0a 20 20 75 6e |m Mnemon|ic". un|
|00002360| 68 69 6c 69 74 65 20 62 | 74 6e 20 22 53 68 6f 72 |hilite b|tn "Shor|
|00002370| 74 63 75 74 20 43 68 65 | 63 6b 62 6f 78 22 0a 20 |tcut Che|ckbox". |
|00002380| 20 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 | put emp|ty into |
|00002390| 66 6c 64 20 22 53 68 6f | 72 74 63 75 74 22 0a 20 |fld "Sho|rtcut". |
|000023a0| 20 73 65 74 20 74 68 65 | 20 6c 61 62 65 6c 20 6f | set the| label o|
|000023b0| 66 20 62 74 6e 20 22 49 | 74 65 6d 20 4d 6e 65 6d |f btn "I|tem Mnem|
|000023c0| 6f 6e 69 63 20 4c 65 74 | 74 65 72 22 20 74 6f 20 |onic Let|ter" to |
|000023d0| 73 70 61 63 65 0a 20 20 | 73 65 74 20 74 68 65 20 |space. |set the |
|000023e0| 6c 61 62 65 6c 20 6f 66 | 20 62 74 6e 20 22 4d 65 |label of| btn "Me|
|000023f0| 6e 75 20 4d 6e 65 6d 6f | 6e 69 63 20 4c 65 74 74 |nu Mnemo|nic Lett|
|00002400| 65 72 22 20 74 6f 20 73 | 70 61 63 65 0a 65 6e 64 |er" to s|pace.end|
|00002410| 20 72 65 76 49 6e 69 74 | 69 61 6c 69 73 65 0a 0a | revInit|ialise..|
|00002420| 6f 6e 20 72 65 76 49 6e | 69 74 69 61 6c 69 73 65 |on revIn|itialise|
|00002430| 46 6f 72 4e 65 77 4d 65 | 6e 75 0a 20 20 2d 2d 75 |ForNewMe|nu. --u|
|00002440| 70 64 61 74 65 20 4d 65 | 6e 75 20 42 75 74 74 6f |pdate Me|nu Butto|
|00002450| 6e 20 63 6f 6e 74 72 6f | 6c 73 20 66 6f 72 20 6e |n contro|ls for n|
|00002460| 65 77 20 6d 65 6e 75 0a | 20 20 67 6c 6f 62 61 6c |ew menu.| global|
|00002470| 20 67 52 45 56 41 63 74 | 69 76 65 4d 65 6e 75 42 | gREVAct|iveMenuB|
|00002480| 75 74 74 6f 6e 0a 20 20 | 20 0a 20 20 2d 2d 72 65 |utton. | . --re|
|00002490| 73 65 74 20 6d 65 6e 75 | 62 61 72 20 70 72 65 76 |set menu|bar prev|
|000024a0| 69 65 77 0a 20 20 73 65 | 74 20 74 68 65 20 64 65 |iew. se|t the de|
|000024b0| 66 61 75 6c 74 4d 65 6e | 75 62 61 72 20 74 6f 20 |faultMen|ubar to |
|000024c0| 74 68 65 20 73 68 6f 72 | 74 20 6e 61 6d 65 20 6f |the shor|t name o|
|000024d0| 66 20 67 72 70 20 22 72 | 65 76 4d 65 6e 75 42 61 |f grp "r|evMenuBa|
|000024e0| 72 22 20 6f 66 20 63 64 | 20 31 20 6f 66 20 73 74 |r" of cd| 1 of st|
|000024f0| 61 63 6b 20 22 72 65 76 | 4d 65 6e 75 42 61 72 22 |ack "rev|MenuBar"|
|00002500| 0a 20 20 20 0a 20 20 2d | 2d 65 6e 61 62 6c 65 20 |. . -|-enable |
|00002510| 61 6c 6c 20 62 75 74 74 | 6f 6e 20 6d 65 6e 75 20 |all butt|on menu |
|00002520| 63 6f 6e 74 72 6f 6c 73 | 0a 20 20 2d 2d 64 69 73 |controls|. --dis|
|00002530| 61 62 6c 65 20 74 68 65 | 6e 20 65 6e 61 62 6c 65 |able the|n enable|
|00002540| 20 67 72 70 20 74 6f 20 | 72 65 6c 69 61 62 6c 79 | grp to |reliably|
|00002550| 20 65 6e 61 62 6c 65 20 | 61 6c 6c 20 69 74 73 20 | enable |all its |
|00002560| 63 6f 6e 74 72 6f 6c 73 | 0a 20 20 64 69 73 61 62 |controls|. disab|
|00002570| 6c 65 20 67 72 70 20 22 | 42 75 74 74 6f 6e 20 4d |le grp "|Button M|
|00002580| 65 6e 75 73 3a 22 0a 20 | 20 65 6e 61 62 6c 65 20 |enus:". | enable |
|00002590| 67 72 70 20 22 42 75 74 | 74 6f 6e 20 4d 65 6e 75 |grp "But|ton Menu|
|000025a0| 73 3a 22 0a 20 20 73 65 | 74 20 74 68 65 20 6c 61 |s:". se|t the la|
|000025b0| 62 65 6c 20 6f 66 20 62 | 74 6e 20 22 4d 65 6e 75 |bel of b|tn "Menu|
|000025c0| 20 4d 6e 65 6d 6f 6e 69 | 63 20 4c 65 74 74 65 72 | Mnemoni|c Letter|
|000025d0| 22 20 74 6f 20 73 70 61 | 63 65 0a 20 20 73 65 74 |" to spa|ce. set|
|000025e0| 20 74 68 65 20 63 52 45 | 56 44 69 73 61 62 6c 65 | the cRE|VDisable|
|000025f0| 64 20 6f 66 20 62 74 6e | 20 22 4d 6f 76 65 20 4d |d of btn| "Move M|
|00002600| 65 6e 75 20 55 70 22 20 | 74 6f 20 66 61 6c 73 65 |enu Up" |to false|
|00002610| 0a 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 44 |. set t|he cREVD|
|00002620| 69 73 61 62 6c 65 64 20 | 6f 66 20 62 74 6e 20 22 |isabled |of btn "|
|00002630| 4d 6f 76 65 20 4d 65 6e | 75 20 44 6f 77 6e 22 20 |Move Men|u Down" |
|00002640| 74 6f 20 66 61 6c 73 65 | 0a 20 20 70 75 74 20 6c |to false|. put l|
|00002650| 69 6e 65 20 31 20 6f 66 | 20 66 6c 64 20 22 4d 65 |ine 1 of| fld "Me|
|00002660| 6e 75 20 42 75 74 74 6f | 6e 73 22 20 69 6e 74 6f |nu Butto|ns" into|
|00002670| 20 66 6c 64 20 22 4d 65 | 6e 75 20 4e 61 6d 65 22 | fld "Me|nu Name"|
|00002680| 0a 20 20 0a 20 20 65 6e | 61 62 6c 65 20 62 74 6e |. . en|able btn|
|00002690| 20 22 4d 61 63 4f 53 20 | 50 72 65 76 69 65 77 22 | "MacOS |Preview"|
|000026a0| 0a 20 20 65 6e 61 62 6c | 65 20 67 72 70 20 22 57 |. enabl|e grp "W|
|000026b0| 69 6e 64 6f 77 73 20 50 | 72 65 76 69 65 77 22 0a |indows P|review".|
|000026c0| 20 20 65 6e 61 62 6c 65 | 20 62 74 6e 20 22 50 72 | enable| btn "Pr|
|000026d0| 65 76 69 65 77 22 0a 20 | 20 65 6e 61 62 6c 65 20 |eview". | enable |
|000026e0| 66 6c 64 20 22 4d 65 6e | 75 62 61 72 22 0a 20 20 |fld "Men|ubar". |
|000026f0| 65 6e 61 62 6c 65 20 62 | 74 6e 20 22 4d 61 63 4f |enable b|tn "MacO|
|00002700| 53 20 4d 65 6e 75 20 42 | 61 72 22 20 20 20 0a 20 |S Menu B|ar" . |
|00002710| 20 65 6e 61 62 6c 65 20 | 62 74 6e 20 22 44 65 6c | enable |btn "Del|
|00002720| 65 74 65 22 0a 20 20 65 | 6e 61 62 6c 65 20 62 74 |ete". e|nable bt|
|00002730| 6e 20 22 45 64 69 74 20 | 4d 65 6e 75 20 42 61 72 |n "Edit |Menu Bar|
|00002740| 20 53 63 72 69 70 74 22 | 0a 20 20 65 6e 61 62 6c | Script"|. enabl|
|00002750| 65 20 62 74 6e 20 22 74 | 6f 70 20 6d 65 6e 75 20 |e btn "t|op menu |
|00002760| 62 61 72 22 0a 20 20 0a | 20 20 65 6e 61 62 6c 65 |bar". .| enable|
|00002770| 20 62 74 6e 20 22 4e 65 | 77 20 4d 65 6e 75 22 0a | btn "Ne|w Menu".|
|00002780| 20 20 73 65 74 20 74 68 | 65 20 68 69 6c 69 74 65 | set th|e hilite|
|00002790| 64 4c 69 6e 65 20 6f 66 | 20 66 6c 64 20 22 4d 65 |dLine of| fld "Me|
|000027a0| 6e 75 20 42 75 74 74 6f | 6e 73 22 20 74 6f 20 31 |nu Butto|ns" to 1|
|000027b0| 0a 65 6e 64 20 72 65 76 | 49 6e 69 74 69 61 6c 69 |.end rev|Initiali|
|000027c0| 73 65 46 6f 72 4e 65 77 | 4d 65 6e 75 0a 0a 6f 6e |seForNew|Menu..on|
|000027d0| 20 72 65 76 46 69 6c 74 | 65 72 49 74 65 6d 4e 61 | revFilt|erItemNa|
|000027e0| 6d 65 0a 20 20 2d 2d 66 | 69 6c 74 65 72 20 6f 75 |me. --f|ilter ou|
|000027f0| 74 20 73 70 65 63 69 61 | 6c 20 63 68 61 72 61 63 |t specia|l charac|
|00002800| 74 65 72 73 20 66 72 6f | 6d 20 74 68 65 20 6d 65 |ters fro|m the me|
|00002810| 6e 75 20 69 74 65 6d 20 | 74 6f 20 73 68 6f 77 20 |nu item |to show |
|00002820| 69 74 20 61 73 20 69 74 | 20 77 6f 75 6c 64 20 61 |it as it| would a|
|00002830| 70 70 65 61 72 20 69 6e | 20 69 74 73 20 6d 65 6e |ppear in| its men|
|00002840| 75 0a 20 20 67 6c 6f 62 | 61 6c 20 67 52 45 56 41 |u. glob|al gREVA|
|00002850| 63 74 69 76 65 4d 65 6e | 75 42 75 74 74 6f 6e 2c |ctiveMen|uButton,|
|00002860| 20 67 52 45 56 4d 4d 4d | 65 6e 75 49 74 65 6d 73 | gREVMMM|enuItems|
|00002870| 0a 20 20 70 75 74 20 74 | 68 65 20 68 69 6c 69 74 |. put t|he hilit|
|00002880| 65 64 4c 69 6e 65 20 6f | 66 20 66 6c 64 20 22 4d |edLine o|f fld "M|
|00002890| 65 6e 75 20 49 74 65 6d | 73 22 20 69 6e 74 6f 20 |enu Item|s" into |
|000028a0| 74 48 69 6c 69 74 65 64 | 4c 69 6e 65 0a 20 20 70 |tHilited|Line. p|
|000028b0| 75 74 20 69 74 65 6d 20 | 33 20 6f 66 20 6c 69 6e |ut item |3 of lin|
|000028c0| 65 20 74 48 69 6c 69 74 | 65 64 4c 69 6e 65 20 6f |e tHilit|edLine o|
|000028d0| 66 20 67 52 45 56 4d 4d | 4d 65 6e 75 49 74 65 6d |f gREVMM|MenuItem|
|000028e0| 73 20 69 6e 74 6f 20 74 | 4d 65 6e 75 4c 69 6e 65 |s into t|MenuLine|
|000028f0| 0a 20 20 70 75 74 20 74 | 68 65 20 74 65 78 74 20 |. put t|he text |
|00002900| 6f 66 20 67 52 45 56 41 | 63 74 69 76 65 4d 65 6e |of gREVA|ctiveMen|
|00002910| 75 42 75 74 74 6f 6e 20 | 69 6e 74 6f 20 74 54 65 |uButton |into tTe|
|00002920| 78 74 0a 20 20 20 0a 20 | 20 70 75 74 20 69 74 65 |xt. . | put ite|
|00002930| 6d 20 32 20 6f 66 20 6c | 69 6e 65 20 74 48 69 6c |m 2 of l|ine tHil|
|00002940| 69 74 65 64 4c 69 6e 65 | 20 6f 66 20 67 52 45 56 |itedLine| of gREV|
|00002950| 4d 4d 4d 65 6e 75 49 74 | 65 6d 73 20 69 6e 74 6f |MMMenuIt|ems into|
|00002960| 20 74 49 74 65 6d 4e 61 | 6d 65 0a 20 20 20 0a 20 | tItemNa|me. . |
|00002970| 20 2d 2d 66 69 6c 74 65 | 72 20 6f 75 74 20 73 74 | --filte|r out st|
|00002980| 79 6c 65 2f 64 69 73 61 | 62 6c 65 20 69 6e 66 6f |yle/disa|ble info|
|00002990| 72 6d 61 74 69 6f 6e 20 | 65 74 63 0a 20 20 70 75 |rmation |etc. pu|
|000029a0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 74 43 6f |t empty |into tCo|
|000029b0| 6d 6d 61 6e 64 4b 65 79 | 53 68 6f 72 74 63 75 74 |mmandKey|Shortcut|
|000029c0| 0a 20 20 69 66 20 63 68 | 61 72 20 2d 20 32 20 6f |. if ch|ar - 2 o|
|000029d0| 66 20 74 49 74 65 6d 4e | 61 6d 65 20 69 73 20 22 |f tItemN|ame is "|
|000029e0| 2f 22 20 61 6e 64 20 63 | 68 61 72 20 2d 20 31 20 |/" and c|har - 1 |
|000029f0| 6f 66 20 74 49 74 65 6d | 4e 61 6d 65 20 69 73 20 |of tItem|Name is |
|00002a00| 6e 6f 74 20 22 2f 22 20 | 61 6e 64 20 63 68 61 72 |not "/" |and char|
|00002a10| 20 2d 20 33 20 6f 66 20 | 74 49 74 65 6d 4e 61 6d | - 3 of |tItemNam|
|00002a20| 65 20 69 73 20 6e 6f 74 | 20 22 2f 22 20 74 68 65 |e is not| "/" the|
|00002a30| 6e 0a 20 20 20 20 70 75 | 74 20 63 68 61 72 20 2d |n. pu|t char -|
|00002a40| 32 20 74 6f 20 2d 31 20 | 6f 66 20 74 49 74 65 6d |2 to -1 |of tItem|
|00002a50| 4e 61 6d 65 20 69 6e 74 | 6f 20 74 43 6f 6d 6d 61 |Name int|o tComma|
|00002a60| 6e 64 4b 65 79 53 68 6f | 72 74 63 75 74 0a 20 20 |ndKeySho|rtcut. |
|00002a70| 20 20 64 65 6c 65 74 65 | 20 63 68 61 72 20 2d 32 | delete| char -2|
|00002a80| 20 74 6f 20 2d 31 20 6f | 66 20 74 49 74 65 6d 4e | to -1 o|f tItemN|
|00002a90| 61 6d 65 0a 20 20 65 6e | 64 20 69 66 0a 20 20 20 |ame. en|d if. |
|00002aa0| 0a 20 20 2d 2d 20 41 6c | 74 20 6b 65 79 20 6d 6e |. -- Al|t key mn|
|00002ab0| 65 6d 6f 6e 69 63 0a 20 | 20 70 75 74 20 65 6d 70 |emonic. | put emp|
|00002ac0| 74 79 20 69 6e 74 6f 20 | 74 53 6b 69 70 0a 20 20 |ty into |tSkip. |
|00002ad0| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 74 |put empt|y into t|
|00002ae0| 4f 66 66 73 65 74 0a 20 | 20 70 75 74 20 65 6d 70 |Offset. | put emp|
|00002af0| 74 79 20 69 6e 74 6f 20 | 74 4d 6e 65 6d 6f 6e 69 |ty into |tMnemoni|
|00002b00| 63 20 20 20 0a 20 20 72 | 65 70 65 61 74 0a 20 20 |c . r|epeat. |
|00002b10| 20 20 70 75 74 20 6f 66 | 66 73 65 74 28 22 26 22 | put of|fset("&"|
|00002b20| 2c 20 74 49 74 65 6d 4e | 61 6d 65 2c 20 74 53 6b |, tItemN|ame, tSk|
|00002b30| 69 70 29 20 69 6e 74 6f | 20 74 4f 66 66 73 65 74 |ip) into| tOffset|
|00002b40| 0a 20 20 20 20 61 64 64 | 20 74 4f 66 66 73 65 74 |. add| tOffset|
|00002b50| 20 74 6f 20 74 53 6b 69 | 70 0a 20 20 20 20 69 66 | to tSki|p. if|
|00002b60| 20 74 4f 66 66 73 65 74 | 20 69 73 20 30 20 74 68 | tOffset| is 0 th|
|00002b70| 65 6e 0a 20 20 20 20 20 | 20 65 78 69 74 20 72 65 |en. | exit re|
|00002b80| 70 65 61 74 0a 20 20 20 | 20 65 6c 73 65 20 69 66 |peat. | else if|
|00002b90| 20 63 68 61 72 20 74 53 | 6b 69 70 20 2d 31 20 6f | char tS|kip -1 o|
|00002ba0| 66 20 74 49 74 65 6d 4e | 61 6d 65 20 69 73 20 6e |f tItemN|ame is n|
|00002bb0| 6f 74 20 22 26 22 20 61 | 6e 64 20 63 68 61 72 20 |ot "&" a|nd char |
|00002bc0| 74 53 6b 69 70 20 2b 20 | 31 20 6f 66 20 74 49 74 |tSkip + |1 of tIt|
|00002bd0| 65 6d 4e 61 6d 65 20 69 | 73 20 6e 6f 74 20 22 26 |emName i|s not "&|
|00002be0| 22 20 74 68 65 6e 0a 20 | 20 20 20 20 20 70 75 74 |" then. | put|
|00002bf0| 20 74 53 6b 69 70 20 69 | 6e 74 6f 20 74 4d 6e 65 | tSkip i|nto tMne|
|00002c00| 6d 6f 6e 69 63 0a 20 20 | 20 20 20 20 64 65 6c 65 |monic. | dele|
|00002c10| 74 65 20 63 68 61 72 20 | 74 53 6b 69 70 20 6f 66 |te char |tSkip of|
|00002c20| 20 74 49 74 65 6d 4e 61 | 6d 65 0a 20 20 20 20 20 | tItemNa|me. |
|00002c30| 20 65 78 69 74 20 72 65 | 70 65 61 74 0a 20 20 20 | exit re|peat. |
|00002c40| 20 65 6e 64 20 69 66 0a | 20 20 65 6e 64 20 72 65 | end if.| end re|
|00002c50| 70 65 61 74 0a 20 20 20 | 0a 20 20 20 0a 20 20 2d |peat. |. . -|
|00002c60| 2d 6c 65 76 65 6c 20 6f | 66 20 73 75 62 6d 65 6e |-level o|f submen|
|00002c70| 75 0a 20 20 70 75 74 20 | 65 6d 70 74 79 20 69 6e |u. put |empty in|
|00002c80| 74 6f 20 74 54 61 62 43 | 6f 75 6e 74 0a 20 20 72 |to tTabC|ount. r|
|00002c90| 65 70 65 61 74 20 66 6f | 72 20 65 61 63 68 20 63 |epeat fo|r each c|
|00002ca0| 68 61 72 20 63 20 69 6e | 20 74 49 74 65 6d 4e 61 |har c in| tItemNa|
|00002cb0| 6d 65 0a 20 20 20 20 69 | 66 20 63 20 69 73 20 74 |me. i|f c is t|
|00002cc0| 61 62 20 74 68 65 6e 20 | 61 64 64 20 31 20 74 6f |ab then |add 1 to|
|00002cd0| 20 74 54 61 62 43 6f 75 | 6e 74 0a 20 20 65 6e 64 | tTabCou|nt. end|
|00002ce0| 20 72 65 70 65 61 74 0a | 20 20 72 65 70 6c 61 63 | repeat.| replac|
|00002cf0| 65 20 74 61 62 20 77 69 | 74 68 20 65 6d 70 74 79 |e tab wi|th empty|
|00002d00| 20 69 6e 20 74 49 74 65 | 6d 4e 61 6d 65 0a 20 20 | in tIte|mName. |
|00002d10| 20 0a 20 20 69 66 20 63 | 68 61 72 20 31 20 6f 66 | . if c|har 1 of|
|00002d20| 20 74 49 74 65 6d 4e 61 | 6d 65 20 69 73 20 22 28 | tItemNa|me is "(|
|00002d30| 22 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 63 68 |" then d|elete ch|
|00002d40| 61 72 20 31 20 6f 66 20 | 74 49 74 65 6d 4e 61 6d |ar 1 of |tItemNam|
|00002d50| 65 0a 20 20 72 65 70 65 | 61 74 20 66 6f 72 20 65 |e. repe|at for e|
|00002d60| 61 63 68 20 69 74 65 6d | 20 69 20 69 6e 20 22 21 |ach item| i in "!|
|00002d70| 63 2c 21 6e 2c 21 72 2c | 21 75 22 0a 20 20 20 20 |c,!n,!r,|!u". |
|00002d80| 69 66 20 63 68 61 72 20 | 31 20 74 6f 20 32 20 6f |if char |1 to 2 o|
|00002d90| 66 20 74 49 74 65 6d 4e | 61 6d 65 20 69 73 20 69 |f tItemN|ame is i|
|00002da0| 20 74 68 65 6e 0a 20 20 | 20 20 20 20 64 65 6c 65 | then. | dele|
|00002db0| 74 65 20 63 68 61 72 20 | 31 20 74 6f 20 32 20 6f |te char |1 to 2 o|
|00002dc0| 66 20 74 49 74 65 6d 4e | 61 6d 65 0a 20 20 20 20 |f tItemN|ame. |
|00002dd0| 20 20 65 78 69 74 20 72 | 65 70 65 61 74 0a 20 20 | exit r|epeat. |
|00002de0| 20 20 65 6e 64 20 69 66 | 0a 20 20 65 6e 64 20 72 | end if|. end r|
|00002df0| 65 70 65 61 74 0a 20 20 | 20 0a 20 20 70 75 74 20 |epeat. | . put |
|00002e00| 74 49 74 65 6d 4e 61 6d | 65 20 69 6e 74 6f 20 66 |tItemNam|e into f|
|00002e10| 6c 64 20 22 49 74 65 6d | 20 4e 61 6d 65 22 0a 20 |ld "Item| Name". |
|00002e20| 20 73 65 74 20 74 68 65 | 20 63 52 45 56 43 6f 6d | set the| cREVCom|
|00002e30| 6d 61 6e 64 4b 65 79 53 | 68 6f 72 74 63 75 74 20 |mandKeyS|hortcut |
|00002e40| 6f 66 20 66 6c 64 20 22 | 49 74 65 6d 20 4e 61 6d |of fld "|Item Nam|
|00002e50| 65 22 20 74 6f 20 74 43 | 6f 6d 6d 61 6e 64 4b 65 |e" to tC|ommandKe|
|00002e60| 79 53 68 6f 72 74 63 75 | 74 0a 20 20 73 65 74 20 |yShortcu|t. set |
|00002e70| 74 68 65 20 63 52 45 56 | 4d 6e 65 6d 6f 6e 69 63 |the cREV|Mnemonic|
|00002e80| 20 6f 66 20 66 6c 64 20 | 22 49 74 65 6d 20 4e 61 | of fld |"Item Na|
|00002e90| 6d 65 22 20 74 6f 20 74 | 4d 6e 65 6d 6f 6e 69 63 |me" to t|Mnemonic|
|00002ea0| 0a 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 54 |. set t|he cREVT|
|00002eb0| 61 62 43 6f 75 6e 74 20 | 6f 66 20 66 6c 64 20 22 |abCount |of fld "|
|00002ec0| 49 74 65 6d 20 4e 61 6d | 65 22 20 74 6f 20 74 54 |Item Nam|e" to tT|
|00002ed0| 61 62 43 6f 75 6e 74 0a | 65 6e 64 20 72 65 76 46 |abCount.|end revF|
|00002ee0| 69 6c 74 65 72 49 74 65 | 6d 4e 61 6d 65 0a 20 20 |ilterIte|mName. |
|00002ef0| 20 20 0a 6f 6e 20 72 65 | 76 49 6e 69 74 69 61 6c | .on re|vInitial|
|00002f00| 69 73 65 46 6f 72 4e 6f | 49 74 65 6d 53 65 6c 65 |iseForNo|ItemSele|
|00002f10| 63 74 69 6f 6e 0a 20 20 | 67 6c 6f 62 61 6c 20 67 |ction. |global g|
|00002f20| 52 45 56 41 63 74 69 76 | 65 4d 65 6e 75 42 75 74 |REVActiv|eMenuBut|
|00002f30| 74 6f 6e 0a 20 20 2d 2d | 64 69 73 61 62 6c 65 20 |ton. --|disable |
|00002f40| 6d 65 6e 75 20 69 74 65 | 6d 20 66 75 6e 63 74 69 |menu ite|m functi|
|00002f50| 6f 6e 61 6c 69 74 79 20 | 75 6e 74 69 6c 20 6f 6e |onality |until on|
|00002f60| 65 20 69 73 20 73 65 6c | 65 63 74 65 64 0a 20 20 |e is sel|ected. |
|00002f70| 69 66 20 67 52 45 56 41 | 63 74 69 76 65 4d 65 6e |if gREVA|ctiveMen|
|00002f80| 75 42 75 74 74 6f 6e 20 | 69 73 20 65 6d 70 74 79 |uButton |is empty|
|00002f90| 20 74 68 65 6e 20 0a 20 | 20 20 20 73 65 74 20 74 | then . | set t|
|00002fa0| 68 65 20 63 52 45 56 49 | 74 65 6d 73 44 69 73 61 |he cREVI|temsDisa|
|00002fb0| 62 6c 65 64 20 6f 66 20 | 74 68 69 73 20 73 74 61 |bled of |this sta|
|00002fc0| 63 6b 20 74 6f 20 74 72 | 75 65 0a 20 20 20 20 73 |ck to tr|ue. s|
|00002fd0| 65 74 20 74 68 65 20 63 | 52 45 56 44 69 73 61 62 |et the c|REVDisab|
|00002fe0| 6c 65 64 20 6f 66 20 62 | 74 6e 20 22 49 6e 73 65 |led of b|tn "Inse|
|00002ff0| 72 74 20 44 69 76 69 64 | 65 72 22 20 74 6f 20 74 |rt Divid|er" to t|
|00003000| 72 75 65 0a 20 20 20 20 | 64 69 73 61 62 6c 65 20 |rue. |disable |
|00003010| 67 72 70 20 22 4d 65 6e | 75 20 49 74 65 6d 73 3a |grp "Men|u Items:|
|00003020| 22 20 0a 20 20 65 6c 73 | 65 0a 20 20 20 20 73 65 |" . els|e. se|
|00003030| 74 20 74 68 65 20 63 52 | 45 56 49 74 65 6d 73 44 |t the cR|EVItemsD|
|00003040| 69 73 61 62 6c 65 64 20 | 6f 66 20 74 68 69 73 20 |isabled |of this |
|00003050| 73 74 61 63 6b 20 74 6f | 20 66 61 6c 73 65 0a 20 |stack to| false. |
|00003060| 20 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 44 | set t|he cREVD|
|00003070| 69 73 61 62 6c 65 64 20 | 6f 66 20 62 74 6e 20 22 |isabled |of btn "|
|00003080| 49 6e 73 65 72 74 20 44 | 69 76 69 64 65 72 22 20 |Insert D|ivider" |
|00003090| 74 6f 20 66 61 6c 73 65 | 0a 20 20 20 20 65 6e 61 |to false|. ena|
|000030a0| 62 6c 65 20 67 72 70 20 | 22 4d 65 6e 75 20 49 74 |ble grp |"Menu It|
|000030b0| 65 6d 73 3a 22 20 20 20 | 0a 20 20 20 20 64 69 73 |ems:" |. dis|
|000030c0| 61 62 6c 65 20 62 74 6e | 20 22 44 65 6c 65 74 65 |able btn| "Delete|
|000030d0| 20 49 74 65 6d 22 0a 20 | 20 20 20 64 69 73 61 62 | Item". | disab|
|000030e0| 6c 65 20 66 6c 64 20 22 | 49 74 65 6d 20 4e 61 6d |le fld "|Item Nam|
|000030f0| 65 22 0a 20 20 20 20 64 | 69 73 61 62 6c 65 20 62 |e". d|isable b|
|00003100| 74 6e 20 22 49 74 65 6d | 20 53 74 79 6c 65 22 0a |tn "Item| Style".|
|00003110| 20 20 65 6e 64 20 69 66 | 20 0a 20 20 20 0a 20 20 | end if| . . |
|00003120| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 66 |put empt|y into f|
|00003130| 6c 64 20 22 49 74 65 6d | 20 4e 61 6d 65 22 0a 20 |ld "Item| Name". |
|00003140| 20 64 69 73 61 62 6c 65 | 20 66 6c 64 20 22 4d 61 | disable| fld "Ma|
|00003150| 72 6b 20 4c 61 62 65 6c | 22 0a 20 20 73 65 74 20 |rk Label|". set |
|00003160| 74 68 65 20 6c 61 62 65 | 6c 20 6f 66 20 62 74 6e |the labe|l of btn|
|00003170| 20 22 49 74 65 6d 20 53 | 74 79 6c 65 22 20 74 6f | "Item S|tyle" to|
|00003180| 20 22 4e 6f 6e 65 22 0a | 20 20 73 65 74 20 74 68 | "None".| set th|
|00003190| 65 20 62 61 63 6b 50 61 | 74 74 65 72 6e 20 6f 66 |e backPa|ttern of|
|000031a0| 20 62 74 6e 20 22 49 74 | 65 6d 20 53 74 79 6c 65 | btn "It|em Style|
|000031b0| 22 20 74 6f 20 65 6d 70 | 74 79 0a 20 20 64 69 73 |" to emp|ty. dis|
|000031c0| 61 62 6c 65 20 67 72 70 | 20 22 4d 65 6e 75 20 49 |able grp| "Menu I|
|000031d0| 74 65 6d 20 43 6f 6e 74 | 72 6f 6c 73 22 0a 20 20 |tem Cont|rols". |
|000031e0| 75 6e 68 69 6c 69 74 65 | 20 62 74 6e 20 22 49 74 |unhilite| btn "It|
|000031f0| 65 6d 20 44 69 73 61 62 | 6c 65 22 0a 20 20 73 65 |em Disab|le". se|
|00003200| 74 20 74 68 65 20 62 61 | 63 6b 50 61 74 74 65 72 |t the ba|ckPatter|
|00003210| 6e 20 6f 66 20 62 74 6e | 20 22 49 74 65 6d 20 44 |n of btn| "Item D|
|00003220| 69 73 61 62 6c 65 22 20 | 74 6f 20 65 6d 70 74 79 |isable" |to empty|
|00003230| 20 0a 20 20 75 6e 68 69 | 6c 69 74 65 20 62 74 6e | . unhi|lite btn|
|00003240| 20 22 49 74 65 6d 20 4d | 6e 65 6d 6f 6e 69 63 22 | "Item M|nemonic"|
|00003250| 0a 20 20 75 6e 68 69 6c | 69 74 65 20 62 74 6e 20 |. unhil|ite btn |
|00003260| 22 53 68 6f 72 74 43 75 | 74 20 43 68 65 63 6b 62 |"ShortCu|t Checkb|
|00003270| 6f 78 22 0a 20 20 0a 20 | 20 70 75 74 20 65 6d 70 |ox". . | put emp|
|00003280| 74 79 20 69 6e 74 6f 20 | 66 6c 64 20 22 53 68 6f |ty into |fld "Sho|
|00003290| 72 74 63 75 74 22 0a 20 | 20 73 65 74 20 74 68 65 |rtcut". | set the|
|000032a0| 20 6c 61 62 65 6c 20 6f | 66 20 62 74 6e 20 22 49 | label o|f btn "I|
|000032b0| 74 65 6d 20 4d 6e 65 6d | 6f 6e 69 63 20 4c 65 74 |tem Mnem|onic Let|
|000032c0| 74 65 72 22 20 74 6f 20 | 73 70 61 63 65 0a 20 20 |ter" to |space. |
|000032d0| 0a 20 20 0a 20 20 73 65 | 74 20 74 68 65 20 63 52 |. . se|t the cR|
|000032e0| 45 56 44 69 73 61 62 6c | 65 64 20 6f 66 20 62 74 |EVDisabl|ed of bt|
|000032f0| 6e 20 22 52 65 64 75 63 | 65 20 49 74 65 6d 20 4e |n "Reduc|e Item N|
|00003300| 65 73 74 69 6e 67 22 20 | 74 6f 20 74 72 75 65 0a |esting" |to true.|
|00003310| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 44 69 | set th|e cREVDi|
|00003320| 73 61 62 6c 65 64 20 6f | 66 20 62 74 6e 20 22 49 |sabled o|f btn "I|
|00003330| 6e 63 72 65 61 73 65 20 | 49 74 65 6d 20 4e 65 73 |ncrease |Item Nes|
|00003340| 74 69 6e 67 22 20 74 6f | 20 74 72 75 65 0a 20 20 |ting" to| true. |
|00003350| 73 65 74 20 74 68 65 20 | 63 52 45 56 44 69 73 61 |set the |cREVDisa|
|00003360| 62 6c 65 64 20 6f 66 20 | 62 74 6e 20 22 4d 6f 76 |bled of |btn "Mov|
|00003370| 65 20 49 74 65 6d 20 55 | 70 22 20 74 6f 20 74 72 |e Item U|p" to tr|
|00003380| 75 65 0a 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |ue. set| the cRE|
|00003390| 56 44 69 73 61 62 6c 65 | 64 20 6f 66 20 62 74 6e |VDisable|d of btn|
|000033a0| 20 22 4d 6f 76 65 20 49 | 74 65 6d 20 44 6f 77 6e | "Move I|tem Down|
|000033b0| 22 20 74 6f 20 74 72 75 | 65 0a 20 20 73 65 74 20 |" to tru|e. set |
|000033c0| 74 68 65 20 63 52 45 56 | 44 69 73 61 62 6c 65 64 |the cREV|Disabled|
|000033d0| 20 6f 66 20 62 74 6e 20 | 22 53 68 6f 72 74 43 75 | of btn |"ShortCu|
|000033e0| 74 22 20 74 6f 20 74 72 | 75 65 0a 65 6e 64 20 72 |t" to tr|ue.end r|
|000033f0| 65 76 49 6e 69 74 69 61 | 6c 69 73 65 46 6f 72 4e |evInitia|liseForN|
|00003400| 6f 49 74 65 6d 53 65 6c | 65 63 74 69 6f 6e 0a 20 |oItemSel|ection. |
|00003410| 20 0a 66 75 6e 63 74 69 | 6f 6e 20 72 65 76 4d 65 | .functi|on revMe|
|00003420| 6e 75 4c 6f 6e 67 49 44 | 20 70 53 68 6f 72 74 49 |nuLongID| pShortI|
|00003430| 44 0a 20 20 2d 2d 72 65 | 74 75 72 6e 20 74 68 65 |D. --re|turn the|
|00003440| 20 6c 6f 6e 67 20 69 64 | 20 6f 66 20 74 68 65 20 | long id| of the |
|00003450| 6d 65 6e 75 20 62 75 74 | 74 6f 6e 20 63 75 72 72 |menu but|ton curr|
|00003460| 65 6e 74 6c 79 20 62 65 | 69 6e 67 20 65 64 69 74 |ently be|ing edit|
|00003470| 65 64 0a 20 20 69 66 20 | 74 68 65 72 65 20 69 73 |ed. if |there is|
|00003480| 20 61 20 62 74 6e 20 69 | 64 20 70 53 68 6f 72 74 | a btn i|d pShort|
|00003490| 49 44 20 6f 66 20 62 67 | 20 69 64 20 28 74 68 65 |ID of bg| id (the|
|000034a0| 20 63 52 45 56 4d 65 6e | 75 49 44 20 6f 66 20 74 | cREVMen|uID of t|
|000034b0| 68 69 73 20 73 74 61 63 | 6b 29 20 6f 66 20 73 74 |his stac|k) of st|
|000034c0| 61 63 6b 20 28 74 68 65 | 20 63 52 45 56 44 65 66 |ack (the| cREVDef|
|000034d0| 61 75 6c 74 53 74 61 63 | 6b 20 6f 66 20 74 68 69 |aultStac|k of thi|
|000034e0| 73 20 73 74 61 63 6b 29 | 20 74 68 65 6e 0a 20 20 |s stack)| then. |
|000034f0| 20 20 72 65 74 75 72 6e | 20 74 68 65 20 6c 6f 6e | return| the lon|
|00003500| 67 20 69 64 20 6f 66 20 | 62 74 6e 20 69 64 20 70 |g id of |btn id p|
|00003510| 53 68 6f 72 74 49 44 20 | 6f 66 20 62 67 20 69 64 |ShortID |of bg id|
|00003520| 20 28 74 68 65 20 63 52 | 45 56 4d 65 6e 75 49 44 | (the cR|EVMenuID|
|00003530| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 29 20 | of this| stack) |
|00003540| 6f 66 20 73 74 61 63 6b | 20 28 74 68 65 20 63 52 |of stack| (the cR|
|00003550| 45 56 44 65 66 61 75 6c | 74 53 74 61 63 6b 20 6f |EVDefaul|tStack o|
|00003560| 66 20 74 68 69 73 20 73 | 74 61 63 6b 29 0a 20 20 |f this s|tack). |
|00003570| 65 6c 73 65 0a 20 20 20 | 20 72 65 74 75 72 6e 20 |else. | return |
|00003580| 65 6d 70 74 79 0a 20 20 | 65 6e 64 20 69 66 0a 65 |empty. |end if.e|
|00003590| 6e 64 20 72 65 76 4d 65 | 6e 75 4c 6f 6e 67 49 44 |nd revMe|nuLongID|
|000035a0| 0a 0a 6f 6e 20 72 65 76 | 55 70 64 61 74 65 53 63 |..on rev|UpdateSc|
|000035b0| 72 6f 6c 6c 62 61 72 0a | 20 20 2d 2d 75 70 64 61 |rollbar.| --upda|
|000035c0| 74 65 20 74 68 65 20 6d | 65 6e 75 20 69 74 65 6d |te the m|enu item|
|000035d0| 73 20 73 63 72 6f 6c 6c | 62 61 72 0a 20 20 67 6c |s scroll|bar. gl|
|000035e0| 6f 62 61 6c 20 67 52 45 | 56 54 65 78 74 48 65 69 |obal gRE|VTextHei|
|000035f0| 67 68 74 0a 20 20 73 65 | 74 20 74 68 65 20 65 6e |ght. se|t the en|
|00003600| 64 56 61 6c 75 65 20 6f | 66 20 73 63 72 6f 6c 6c |dValue o|f scroll|
|00003610| 42 61 72 20 22 4d 65 6e | 75 20 49 74 65 6d 73 22 |Bar "Men|u Items"|
|00003620| 20 74 6f 20 74 68 65 20 | 66 6f 72 6d 61 74 74 65 | to the |formatte|
|00003630| 64 48 65 69 67 68 74 20 | 6f 66 20 66 69 65 6c 64 |dHeight |of field|
|00003640| 20 22 4d 65 6e 75 20 49 | 74 65 6d 73 22 20 2d 20 | "Menu I|tems" - |
|00003650| 74 68 65 20 74 6f 70 4d | 61 72 67 69 6e 20 6f 66 |the topM|argin of|
|00003660| 20 66 6c 64 20 22 4d 65 | 6e 75 20 49 74 65 6d 73 | fld "Me|nu Items|
|00003670| 22 0a 20 20 73 65 74 20 | 74 68 65 20 74 68 75 6d |". set |the thum|
|00003680| 62 53 69 7a 65 20 6f 66 | 20 73 63 72 6f 6c 6c 42 |bSize of| scrollB|
|00003690| 61 72 20 22 4d 65 6e 75 | 20 49 74 65 6d 73 22 20 |ar "Menu| Items" |
|000036a0| 74 6f 20 74 68 65 20 68 | 65 69 67 68 74 20 6f 66 |to the h|eight of|
|000036b0| 20 66 69 65 6c 64 20 22 | 4d 65 6e 75 20 49 74 65 | field "|Menu Ite|
|000036c0| 6d 73 22 0a 20 20 73 65 | 74 20 74 68 65 20 6c 69 |ms". se|t the li|
|000036d0| 6e 65 49 6e 63 20 6f 66 | 20 73 63 72 6f 6c 6c 42 |neInc of| scrollB|
|000036e0| 61 72 20 22 4d 65 6e 75 | 20 49 74 65 6d 73 22 20 |ar "Menu| Items" |
|000036f0| 74 6f 20 67 52 45 56 54 | 65 78 74 48 65 69 67 68 |to gREVT|extHeigh|
|00003700| 74 0a 20 20 73 65 74 20 | 74 68 65 20 70 61 67 65 |t. set |the page|
|00003710| 49 6e 63 20 6f 66 20 73 | 63 72 6f 6c 6c 42 61 72 |Inc of s|crollBar|
|00003720| 20 22 4d 65 6e 75 20 49 | 74 65 6d 73 22 20 74 6f | "Menu I|tems" to|
|00003730| 20 74 68 65 20 68 65 69 | 67 68 74 20 6f 66 20 66 | the hei|ght of f|
|00003740| 69 65 6c 64 20 22 4d 65 | 6e 75 20 49 74 65 6d 73 |ield "Me|nu Items|
|00003750| 22 0a 20 20 69 66 20 74 | 68 65 20 65 6e 64 56 61 |". if t|he endVa|
|00003760| 6c 75 65 20 6f 66 20 73 | 62 20 22 4d 65 6e 75 20 |lue of s|b "Menu |
|00003770| 49 74 65 6d 73 22 20 3e | 20 74 68 65 20 68 65 69 |Items" >| the hei|
|00003780| 67 68 74 20 6f 66 20 66 | 6c 64 20 22 4d 65 6e 75 |ght of f|ld "Menu|
|00003790| 20 49 74 65 6d 73 22 20 | 74 68 65 6e 20 65 6e 61 | Items" |then ena|
|000037a0| 62 6c 65 20 73 62 20 22 | 4d 65 6e 75 20 49 74 65 |ble sb "|Menu Ite|
|000037b0| 6d 73 22 0a 20 20 65 6c | 73 65 20 64 69 73 61 62 |ms". el|se disab|
|000037c0| 6c 65 20 73 62 20 22 4d | 65 6e 75 20 49 74 65 6d |le sb "M|enu Item|
|000037d0| 73 22 0a 65 6e 64 20 72 | 65 76 55 70 64 61 74 65 |s".end r|evUpdate|
|000037e0| 53 63 72 6f 6c 6c 62 61 | 72 0a 0a 6f 6e 20 72 65 |Scrollba|r..on re|
|000037f0| 76 52 65 73 65 74 54 72 | 69 61 6e 67 6c 65 73 0a |vResetTr|iangles.|
|00003800| 20 20 2d 2d 75 70 64 61 | 74 65 20 74 68 65 20 66 | --upda|te the f|
|00003810| 6f 6c 64 6f 75 74 20 74 | 72 69 61 6e 67 6c 65 73 |oldout t|riangles|
|00003820| 20 69 6e 20 74 68 65 20 | 6d 65 6e 75 20 69 74 65 | in the |menu ite|
|00003830| 6d 73 20 66 6c 64 0a 20 | 20 67 6c 6f 62 61 6c 20 |ms fld. | global |
|00003840| 67 52 45 56 4d 4d 4d 65 | 6e 75 49 74 65 6d 73 2c |gREVMMMe|nuItems,|
|00003850| 20 67 52 45 56 54 65 78 | 74 48 65 69 67 68 74 0a | gREVTex|tHeight.|
|00003860| 20 20 70 75 74 20 72 6f | 75 6e 64 28 74 68 65 20 | put ro|und(the |
|00003870| 73 63 72 6f 6c 6c 20 6f | 66 20 66 6c 64 20 22 4d |scroll o|f fld "M|
|00003880| 65 6e 75 20 49 74 65 6d | 73 22 2f 67 52 45 56 54 |enu Item|s"/gREVT|
|00003890| 65 78 74 48 65 69 67 68 | 74 29 20 69 6e 74 6f 20 |extHeigh|t) into |
|000038a0| 74 4c 69 6e 65 0a 20 20 | 70 75 74 20 74 68 65 20 |tLine. |put the |
|000038b0| 6e 75 6d 20 6f 66 20 62 | 74 6e 73 20 69 6e 20 67 |num of b|tns in g|
|000038c0| 72 70 20 22 46 6f 6c 64 | 6f 75 74 20 54 72 69 61 |rp "Fold|out Tria|
|000038d0| 6e 67 6c 65 73 22 20 69 | 6e 74 6f 20 74 4e 75 6d |ngles" i|nto tNum|
|000038e0| 54 72 69 61 6e 67 6c 65 | 73 0a 20 20 72 65 70 65 |Triangle|s. repe|
|000038f0| 61 74 20 77 69 74 68 20 | 69 20 3d 20 31 20 74 6f |at with |i = 1 to|
|00003900| 20 74 4e 75 6d 54 72 69 | 61 6e 67 6c 65 73 0a 20 | tNumTri|angles. |
|00003910| 20 20 20 61 64 64 20 31 | 20 74 6f 20 74 4c 69 6e | add 1| to tLin|
|00003920| 65 0a 20 20 20 20 70 75 | 74 20 69 74 65 6d 20 31 |e. pu|t item 1|
|00003930| 20 6f 66 20 6c 69 6e 65 | 20 74 4c 69 6e 65 20 6f | of line| tLine o|
|00003940| 66 20 67 52 45 56 4d 4d | 4d 65 6e 75 49 74 65 6d |f gREVMM|MenuItem|
|00003950| 73 20 69 6e 74 6f 20 74 | 49 63 6f 6e 0a 20 20 20 |s into t|Icon. |
|00003960| 20 73 77 69 74 63 68 20 | 74 49 63 6f 6e 20 20 20 | switch |tIcon |
|00003970| 20 20 20 0a 20 20 20 20 | 63 61 73 65 20 66 61 6c | . |case fal|
|00003980| 73 65 0a 20 20 20 20 20 | 20 65 6e 61 62 6c 65 20 |se. | enable |
|00003990| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|000039a0| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|000039b0| 0a 20 20 20 20 20 20 75 | 6e 68 69 6c 69 74 65 20 |. u|nhilite |
|000039c0| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|000039d0| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|000039e0| 0a 20 20 20 20 20 20 73 | 65 74 20 74 68 65 20 69 |. s|et the i|
|000039f0| 63 6f 6e 20 6f 66 20 62 | 74 6e 20 69 20 6f 66 20 |con of b|tn i of |
|00003a00| 67 72 70 20 22 46 6f 6c | 64 6f 75 74 20 54 72 69 |grp "Fol|dout Tri|
|00003a10| 61 6e 67 6c 65 73 22 20 | 74 6f 20 74 68 65 20 63 |angles" |to the c|
|00003a20| 52 45 56 49 63 6f 6e 20 | 6f 66 20 62 74 6e 20 69 |REVIcon |of btn i|
|00003a30| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|00003a40| 20 54 72 69 61 6e 67 6c | 65 73 22 0a 20 20 20 20 | Triangl|es". |
|00003a50| 20 20 62 72 65 61 6b 0a | 20 20 20 20 63 61 73 65 | break.| case|
|00003a60| 20 74 72 75 65 0a 20 20 | 20 20 20 20 65 6e 61 62 | true. | enab|
|00003a70| 6c 65 20 62 74 6e 20 69 | 20 6f 66 20 67 72 70 20 |le btn i| of grp |
|00003a80| 22 46 6f 6c 64 6f 75 74 | 20 54 72 69 61 6e 67 6c |"Foldout| Triangl|
|00003a90| 65 73 22 0a 20 20 20 20 | 20 20 68 69 6c 69 74 65 |es". | hilite|
|00003aa0| 20 62 74 6e 20 69 20 6f | 66 20 67 72 70 20 22 46 | btn i o|f grp "F|
|00003ab0| 6f 6c 64 6f 75 74 20 54 | 72 69 61 6e 67 6c 65 73 |oldout T|riangles|
|00003ac0| 22 0a 20 20 20 20 20 20 | 73 65 74 20 74 68 65 20 |". |set the |
|00003ad0| 73 68 6f 77 49 63 6f 6e | 20 6f 66 20 62 74 6e 20 |showIcon| of btn |
|00003ae0| 69 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |i of grp| "Foldou|
|00003af0| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 20 74 6f 20 |t Triang|les" to |
|00003b00| 74 72 75 65 0a 20 20 20 | 20 20 20 62 72 65 61 6b |true. | break|
|00003b10| 0a 20 20 20 20 64 65 66 | 61 75 6c 74 0a 20 20 20 |. def|ault. |
|00003b20| 20 20 20 64 69 73 61 62 | 6c 65 20 62 74 6e 20 69 | disab|le btn i|
|00003b30| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|00003b40| 20 54 72 69 61 6e 67 6c | 65 73 22 0a 20 20 20 20 | Triangl|es". |
|00003b50| 20 20 75 6e 68 69 6c 69 | 74 65 20 62 74 6e 20 69 | unhili|te btn i|
|00003b60| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|00003b70| 20 54 72 69 61 6e 67 6c | 65 73 22 0a 20 20 20 20 | Triangl|es". |
|00003b80| 20 20 73 65 74 20 74 68 | 65 20 73 68 6f 77 49 63 | set th|e showIc|
|00003b90| 6f 6e 20 6f 66 20 62 74 | 6e 20 69 20 6f 66 20 67 |on of bt|n i of g|
|00003ba0| 72 70 20 22 46 6f 6c 64 | 6f 75 74 20 54 72 69 61 |rp "Fold|out Tria|
|00003bb0| 6e 67 6c 65 73 22 20 74 | 6f 20 66 61 6c 73 65 0a |ngles" t|o false.|
|00003bc0| 20 20 20 20 20 20 62 72 | 65 61 6b 20 20 20 20 20 | br|eak |
|00003bd0| 20 0a 20 20 20 20 65 6e | 64 20 73 77 69 74 63 68 | . en|d switch|
|00003be0| 0a 20 20 65 6e 64 20 72 | 65 70 65 61 74 0a 65 6e |. end r|epeat.en|
|00003bf0| 64 20 72 65 76 52 65 73 | 65 74 54 72 69 61 6e 67 |d revRes|etTriang|
|00003c00| 6c 65 73 0a 0a 6f 6e 20 | 72 65 76 55 70 64 61 74 |les..on |revUpdat|
|00003c10| 65 46 69 65 6c 64 0a 20 | 20 2d 2d 75 70 64 61 74 |eField. | --updat|
|00003c20| 65 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |e the co|ntents o|
|00003c30| 66 20 74 68 65 20 4d 65 | 6e 75 20 49 74 65 6d 73 |f the Me|nu Items|
|00003c40| 20 66 6c 64 0a 20 20 67 | 6c 6f 62 61 6c 20 67 52 | fld. g|lobal gR|
|00003c50| 45 56 4d 4d 4d 65 6e 75 | 49 74 65 6d 73 0a 20 20 |EVMMMenu|Items. |
|00003c60| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 74 |put empt|y into t|
|00003c70| 4d 65 6e 75 49 74 65 6d | 73 0a 20 20 72 65 70 65 |MenuItem|s. repe|
|00003c80| 61 74 20 66 6f 72 20 65 | 61 63 68 20 6c 69 6e 65 |at for e|ach line|
|00003c90| 20 6c 20 69 6e 20 67 52 | 45 56 4d 4d 4d 65 6e 75 | l in gR|EVMMMenu|
|00003ca0| 49 74 65 6d 73 0a 20 20 | 20 20 70 75 74 20 74 61 |Items. | put ta|
|00003cb0| 62 20 26 20 69 74 65 6d | 20 32 20 6f 66 20 6c 20 |b & item| 2 of l |
|00003cc0| 26 20 63 72 20 61 66 74 | 65 72 20 74 4d 65 6e 75 |& cr aft|er tMenu|
|00003cd0| 49 74 65 6d 73 0a 20 20 | 65 6e 64 20 72 65 70 65 |Items. |end repe|
|00003ce0| 61 74 0a 20 20 64 65 6c | 65 74 65 20 6c 61 73 74 |at. del|ete last|
|00003cf0| 20 63 68 61 72 20 6f 66 | 20 74 4d 65 6e 75 49 74 | char of| tMenuIt|
|00003d00| 65 6d 73 0a 20 20 2d 2d | 61 6e 73 77 65 72 20 74 |ems. --|answer t|
|00003d10| 4d 65 6e 75 49 74 65 6d | 73 0a 20 20 70 75 74 20 |MenuItem|s. put |
|00003d20| 74 4d 65 6e 75 49 74 65 | 6d 73 20 69 6e 74 6f 20 |tMenuIte|ms into |
|00003d30| 66 6c 64 20 22 4d 65 6e | 75 20 49 74 65 6d 73 22 |fld "Men|u Items"|
|00003d40| 0a 65 6e 64 20 72 65 76 | 55 70 64 61 74 65 46 69 |.end rev|UpdateFi|
|00003d50| 65 6c 64 0a 0a 6f 6e 20 | 72 65 76 47 65 6e 65 72 |eld..on |revGener|
|00003d60| 61 74 65 49 74 65 6d 73 | 46 69 65 6c 64 0a 20 20 |ateItems|Field. |
|00003d70| 2d 2d 73 65 74 20 74 68 | 65 20 63 6f 6e 74 65 6e |--set th|e conten|
|00003d80| 74 73 20 6f 66 20 74 68 | 65 20 6d 65 6e 75 20 49 |ts of th|e menu I|
|00003d90| 74 65 6d 73 20 66 6c 64 | 2c 20 69 74 73 20 76 61 |tems fld|, its va|
|00003da0| 72 69 61 62 6c 65 20 61 | 6e 64 20 69 6e 69 74 69 |riable a|nd initi|
|00003db0| 61 6c 69 73 65 20 74 68 | 65 20 66 6f 6c 64 6f 75 |alise th|e foldou|
|00003dc0| 74 20 74 72 69 61 6e 67 | 6c 65 73 0a 20 20 67 6c |t triang|les. gl|
|00003dd0| 6f 62 61 6c 20 67 52 45 | 56 54 65 78 74 48 65 69 |obal gRE|VTextHei|
|00003de0| 67 68 74 2c 20 67 52 45 | 56 4d 4d 4d 65 6e 75 49 |ght, gRE|VMMMenuI|
|00003df0| 74 65 6d 73 2c 20 67 52 | 45 56 41 63 74 69 76 65 |tems, gR|EVActive|
|00003e00| 4d 65 6e 75 42 75 74 74 | 6f 6e 0a 20 20 6c 6f 63 |MenuButt|on. loc|
|00003e10| 6b 20 6d 65 73 73 61 67 | 65 73 0a 20 20 70 75 74 |k messag|es. put|
|00003e20| 20 74 68 65 20 74 65 78 | 74 20 6f 66 20 67 52 45 | the tex|t of gRE|
|00003e30| 56 41 63 74 69 76 65 4d | 65 6e 75 42 75 74 74 6f |VActiveM|enuButto|
|00003e40| 6e 20 69 6e 74 6f 20 74 | 4d 65 6e 75 49 74 65 6d |n into t|MenuItem|
|00003e50| 73 0a 20 20 70 75 74 20 | 65 6d 70 74 79 20 69 6e |s. put |empty in|
|00003e60| 74 6f 20 74 43 6f 75 6e | 74 65 72 0a 20 20 70 75 |to tCoun|ter. pu|
|00003e70| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 67 52 45 |t empty |into gRE|
|00003e80| 56 4d 4d 4d 65 6e 75 49 | 74 65 6d 73 0a 20 20 72 |VMMMenuI|tems. r|
|00003e90| 65 70 65 61 74 20 66 6f | 72 20 65 61 63 68 20 6c |epeat fo|r each l|
|00003ea0| 69 6e 65 20 6c 20 69 6e | 20 74 4d 65 6e 75 49 74 |ine l in| tMenuIt|
|00003eb0| 65 6d 73 0a 20 20 20 20 | 61 64 64 20 31 20 74 6f |ems. |add 1 to|
|00003ec0| 20 74 43 6f 75 6e 74 65 | 72 0a 20 20 20 20 69 66 | tCounte|r. if|
|00003ed0| 20 74 61 62 20 69 73 20 | 69 6e 20 6c 20 74 68 65 | tab is |in l the|
|00003ee0| 6e 0a 20 20 20 20 20 20 | 2d 2d 69 66 20 6c 61 73 |n. |--if las|
|00003ef0| 74 20 69 74 65 6d 20 77 | 61 73 20 63 61 73 63 61 |t item w|as casca|
|00003f00| 64 65 20 6d 65 6e 75 2c | 20 73 65 74 20 69 74 73 |de menu,| set its|
|00003f10| 20 69 63 6f 6e 0a 20 20 | 20 20 20 20 69 66 20 74 | icon. | if t|
|00003f20| 4e 6f 74 43 61 73 63 61 | 64 65 20 74 68 65 6e 20 |NotCasca|de then |
|00003f30| 70 75 74 20 66 61 6c 73 | 65 20 69 6e 74 6f 20 69 |put fals|e into i|
|00003f40| 74 65 6d 20 31 20 6f 66 | 20 74 68 65 20 6c 61 73 |tem 1 of| the las|
|00003f50| 74 20 6c 69 6e 65 20 6f | 66 20 67 52 45 56 4d 4d |t line o|f gREVMM|
|00003f60| 4d 65 6e 75 49 74 65 6d | 73 0a 20 20 20 20 20 20 |MenuItem|s. |
|00003f70| 70 75 74 20 66 61 6c 73 | 65 20 69 6e 74 6f 20 74 |put fals|e into t|
|00003f80| 4e 6f 74 43 61 73 63 61 | 64 65 0a 20 20 20 20 65 |NotCasca|de. e|
|00003f90| 6c 73 65 0a 20 20 20 20 | 20 20 70 75 74 20 74 72 |lse. | put tr|
|00003fa0| 75 65 20 69 6e 74 6f 20 | 74 4e 6f 74 43 61 73 63 |ue into |tNotCasc|
|00003fb0| 61 64 65 0a 20 20 20 20 | 20 20 70 75 74 20 65 6d |ade. | put em|
|00003fc0| 70 74 79 2c 20 6c 2c 20 | 74 43 6f 75 6e 74 65 72 |pty, l, |tCounter|
|00003fd0| 20 26 20 63 72 20 61 66 | 74 65 72 20 67 52 45 56 | & cr af|ter gREV|
|00003fe0| 4d 4d 4d 65 6e 75 49 74 | 65 6d 73 0a 20 20 20 20 |MMMenuIt|ems. |
|00003ff0| 20 20 70 75 74 20 74 61 | 62 20 26 20 6c 20 26 20 | put ta|b & l & |
|00004000| 63 72 20 61 66 74 65 72 | 20 74 4d 65 6e 75 49 74 |cr after| tMenuIt|
|00004010| 65 6d 73 46 69 65 6c 64 | 0a 20 20 20 20 65 6e 64 |emsField|. end|
|00004020| 20 69 66 0a 20 20 65 6e | 64 20 72 65 70 65 61 74 | if. en|d repeat|
|00004030| 0a 20 20 64 65 6c 65 74 | 65 20 6c 61 73 74 20 63 |. delet|e last c|
|00004040| 68 61 72 20 6f 66 20 67 | 52 45 56 4d 4d 4d 65 6e |har of g|REVMMMen|
|00004050| 75 49 74 65 6d 73 0a 20 | 20 64 65 6c 65 74 65 20 |uItems. | delete |
|00004060| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 74 4d 65 |last cha|r of tMe|
|00004070| 6e 75 49 74 65 6d 73 46 | 69 65 6c 64 0a 20 20 70 |nuItemsF|ield. p|
|00004080| 75 74 20 74 4d 65 6e 75 | 49 74 65 6d 73 46 69 65 |ut tMenu|ItemsFie|
|00004090| 6c 64 20 69 6e 74 6f 20 | 66 6c 64 20 22 4d 65 6e |ld into |fld "Men|
|000040a0| 75 20 49 74 65 6d 73 22 | 0a 20 20 2d 2d 69 6e 73 |u Items"|. --ins|
|000040b0| 65 72 74 69 6f 6e 20 77 | 69 64 67 65 74 0a 20 20 |ertion w|idget. |
|000040c0| 70 75 74 20 72 6f 75 6e | 64 28 28 69 74 65 6d 20 |put roun|d((item |
|000040d0| 32 20 6f 66 20 74 68 65 | 20 6c 6f 63 20 6f 66 20 |2 of the| loc of |
|000040e0| 67 72 70 20 22 49 74 65 | 6d 20 49 6e 73 65 72 74 |grp "Ite|m Insert|
|000040f0| 22 20 2d 20 74 68 65 20 | 74 6f 70 20 6f 66 20 66 |" - the |top of f|
|00004100| 6c 64 20 22 4d 65 6e 75 | 20 49 74 65 6d 73 22 29 |ld "Menu| Items")|
|00004110| 2f 67 52 45 56 54 65 78 | 74 48 65 69 67 68 74 29 |/gREVTex|tHeight)|
|00004120| 20 69 6e 74 6f 20 74 57 | 69 64 67 65 74 4c 69 6e | into tW|idgetLin|
|00004130| 65 0a 20 20 69 66 20 74 | 68 65 20 6e 75 6d 20 6f |e. if t|he num o|
|00004140| 66 20 6c 69 6e 65 73 20 | 69 6e 20 74 4d 65 6e 75 |f lines |in tMenu|
|00004150| 49 74 65 6d 73 46 69 65 | 6c 64 20 3c 20 74 57 69 |ItemsFie|ld < tWi|
|00004160| 64 67 65 74 4c 69 6e 65 | 20 74 68 65 6e 20 0a 20 |dgetLine| then . |
|00004170| 20 20 20 70 75 74 20 74 | 68 65 20 6e 75 6d 20 6f | put t|he num o|
|00004180| 66 20 6c 69 6e 65 73 20 | 69 6e 20 74 4d 65 6e 75 |f lines |in tMenu|
|00004190| 49 74 65 6d 73 46 69 65 | 6c 64 20 69 6e 74 6f 20 |ItemsFie|ld into |
|000041a0| 74 57 69 64 67 65 74 4c | 69 6e 65 0a 20 20 20 20 |tWidgetL|ine. |
|000041b0| 73 65 74 20 74 68 65 20 | 74 6f 70 20 6f 66 20 67 |set the |top of g|
|000041c0| 72 70 20 22 49 74 65 6d | 20 49 6e 73 65 72 74 22 |rp "Item| Insert"|
|000041d0| 20 74 6f 20 74 68 65 20 | 74 6f 70 20 6f 66 20 66 | to the |top of f|
|000041e0| 6c 64 20 22 4d 65 6e 75 | 20 49 74 65 6d 73 22 20 |ld "Menu| Items" |
|000041f0| 2b 20 28 74 57 69 64 67 | 65 74 4c 69 6e 65 20 2a |+ (tWidg|etLine *|
|00004200| 20 67 52 45 56 54 65 78 | 74 48 65 69 67 68 74 29 | gREVTex|tHeight)|
|00004210| 20 2d 20 74 68 65 20 74 | 6f 70 4d 61 72 67 69 6e | - the t|opMargin|
|00004220| 20 6f 66 20 66 6c 64 20 | 22 4d 65 6e 75 20 49 74 | of fld |"Menu It|
|00004230| 65 6d 73 22 20 2b 20 33 | 0a 20 20 65 6e 64 20 69 |ems" + 3|. end i|
|00004240| 66 0a 20 20 69 66 20 74 | 68 65 20 62 6f 74 74 6f |f. if t|he botto|
|00004250| 6d 20 6f 66 20 67 72 70 | 20 22 49 74 65 6d 20 49 |m of grp| "Item I|
|00004260| 6e 73 65 72 74 22 20 69 | 73 20 2d 20 31 30 30 30 |nsert" i|s - 1000|
|00004270| 20 74 68 65 6e 0a 20 20 | 20 20 73 65 74 20 74 68 | then. | set th|
|00004280| 65 20 74 6f 70 20 6f 66 | 20 67 72 70 20 22 49 74 |e top of| grp "It|
|00004290| 65 6d 20 49 6e 73 65 72 | 74 22 20 74 6f 20 74 68 |em Inser|t" to th|
|000042a0| 65 20 74 6f 70 20 6f 66 | 20 66 6c 64 20 22 4d 65 |e top of| fld "Me|
|000042b0| 6e 75 20 49 74 65 6d 73 | 22 20 2d 20 37 0a 20 20 |nu Items|" - 7. |
|000042c0| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 4c 69 | set th|e cREVLi|
|000042d0| 6e 65 20 6f 66 20 67 72 | 70 20 22 49 74 65 6d 20 |ne of gr|p "Item |
|000042e0| 49 6e 73 65 72 74 22 20 | 74 6f 20 30 0a 20 20 65 |Insert" |to 0. e|
|000042f0| 6c 73 65 0a 20 20 20 20 | 73 65 74 20 74 68 65 20 |lse. |set the |
|00004300| 63 52 45 56 4c 69 6e 65 | 20 6f 66 20 67 72 70 20 |cREVLine| of grp |
|00004310| 22 49 74 65 6d 20 49 6e | 73 65 72 74 22 20 74 6f |"Item In|sert" to|
|00004320| 20 74 57 69 64 67 65 74 | 4c 69 6e 65 0a 20 20 65 | tWidget|Line. e|
|00004330| 6e 64 20 69 66 0a 20 20 | 2d 2d 66 6f 6c 64 6f 75 |nd if. |--foldou|
|00004340| 74 20 74 72 69 61 6e 67 | 6c 65 73 0a 20 20 70 75 |t triang|les. pu|
|00004350| 74 20 74 68 65 20 6e 75 | 6d 20 6f 66 20 62 74 6e |t the nu|m of btn|
|00004360| 73 20 69 6e 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |s in grp| "Foldou|
|00004370| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 20 69 6e 74 |t Triang|les" int|
|00004380| 6f 20 74 4e 75 6d 42 75 | 74 74 6f 6e 73 0a 20 20 |o tNumBu|ttons. |
|00004390| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|000043a0| 31 20 74 6f 20 74 4e 75 | 6d 42 75 74 74 6f 6e 73 |1 to tNu|mButtons|
|000043b0| 0a 20 20 20 20 70 75 74 | 20 69 74 65 6d 20 31 20 |. put| item 1 |
|000043c0| 6f 66 20 6c 69 6e 65 20 | 69 20 6f 66 20 67 52 45 |of line |i of gRE|
|000043d0| 56 4d 4d 4d 65 6e 75 49 | 74 65 6d 73 20 69 6e 74 |VMMMenuI|tems int|
|000043e0| 6f 20 74 49 63 6f 6e 0a | 20 20 20 20 69 66 20 74 |o tIcon.| if t|
|000043f0| 49 63 6f 6e 20 69 73 20 | 66 61 6c 73 65 20 74 68 |Icon is |false th|
|00004400| 65 6e 0a 20 20 20 20 20 | 20 65 6e 61 62 6c 65 20 |en. | enable |
|00004410| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|00004420| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|00004430| 0a 20 20 20 20 20 20 75 | 6e 68 69 6c 69 74 65 20 |. u|nhilite |
|00004440| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|00004450| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|00004460| 0a 20 20 20 20 20 20 73 | 65 74 20 74 68 65 20 69 |. s|et the i|
|00004470| 63 6f 6e 20 6f 66 20 62 | 74 6e 20 69 20 6f 66 20 |con of b|tn i of |
|00004480| 67 72 70 20 22 46 6f 6c | 64 6f 75 74 20 54 72 69 |grp "Fol|dout Tri|
|00004490| 61 6e 67 6c 65 73 22 20 | 74 6f 20 74 68 65 20 63 |angles" |to the c|
|000044a0| 52 45 56 49 63 6f 6e 20 | 6f 66 20 62 74 6e 20 69 |REVIcon |of btn i|
|000044b0| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|000044c0| 20 54 72 69 61 6e 67 6c | 65 73 22 0a 20 20 20 20 | Triangl|es". |
|000044d0| 65 6c 73 65 0a 20 20 20 | 20 20 20 64 69 73 61 62 |else. | disab|
|000044e0| 6c 65 20 62 74 6e 20 69 | 20 6f 66 20 67 72 70 20 |le btn i| of grp |
|000044f0| 22 46 6f 6c 64 6f 75 74 | 20 54 72 69 61 6e 67 6c |"Foldout| Triangl|
|00004500| 65 73 22 20 0a 20 20 20 | 20 20 20 75 6e 68 69 6c |es" . | unhil|
|00004510| 69 74 65 20 62 74 6e 20 | 69 20 6f 66 20 67 72 70 |ite btn |i of grp|
|00004520| 20 22 46 6f 6c 64 6f 75 | 74 20 54 72 69 61 6e 67 | "Foldou|t Triang|
|00004530| 6c 65 73 22 20 20 20 20 | 0a 20 20 20 20 20 20 73 |les" |. s|
|00004540| 65 74 20 74 68 65 20 73 | 68 6f 77 49 63 6f 6e 20 |et the s|howIcon |
|00004550| 6f 66 20 62 74 6e 20 69 | 20 6f 66 20 67 72 70 20 |of btn i| of grp |
|00004560| 22 46 6f 6c 64 6f 75 74 | 20 54 72 69 61 6e 67 6c |"Foldout| Triangl|
|00004570| 65 73 22 20 74 6f 20 66 | 61 6c 73 65 0a 20 20 20 |es" to f|alse. |
|00004580| 20 65 6e 64 20 69 66 0a | 20 20 65 6e 64 20 72 65 | end if.| end re|
|00004590| 70 65 61 74 0a 20 20 75 | 6e 6c 6f 63 6b 20 6d 65 |peat. u|nlock me|
|000045a0| 73 73 61 67 65 73 0a 65 | 6e 64 20 72 65 76 47 65 |ssages.e|nd revGe|
|000045b0| 6e 65 72 61 74 65 49 74 | 65 6d 73 46 69 65 6c 64 |nerateIt|emsField|
|000045c0| 0a 0a 6f 6e 20 72 65 76 | 44 65 6c 65 74 65 4d 65 |..on rev|DeleteMe|
|000045d0| 6e 75 4d 61 6e 61 67 65 | 72 47 72 6f 75 70 0a 20 |nuManage|rGroup. |
|000045e0| 20 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0a 20 20 2d | lock sc|reen. -|
|000045f0| 2d 72 65 73 65 74 20 6d | 65 6e 75 20 62 61 72 0a |-reset m|enu bar.|
|00004600| 20 20 72 65 76 52 65 73 | 65 74 0a 20 20 72 65 76 | revRes|et. rev|
|00004610| 49 6e 69 74 69 61 6c 69 | 73 65 0a 20 20 75 6e 6c |Initiali|se. unl|
|00004620| 6f 63 6b 20 73 63 72 65 | 65 6e 0a 65 6e 64 20 72 |ock scre|en.end r|
|00004630| 65 76 44 65 6c 65 74 65 | 4d 65 6e 75 4d 61 6e 61 |evDelete|MenuMana|
|00004640| 67 65 72 47 72 6f 75 70 | 0a 00 00 00 00 00 80 00 |gerGroup|........|
|00004650| 00 00 00 00 01 92 01 7d | 00 00 00 00 18 00 15 63 |.......}|.......c|
|00004660| 52 45 56 47 65 6f 6d 65 | 74 72 79 43 61 63 68 65 |REVGeome|tryCache|
|00004670| 49 44 73 00 00 00 00 37 | 0d 39 36 35 30 35 32 38 |IDs....7|.9650528|
|00004680| 32 39 37 34 37 00 00 04 | 34 38 39 30 0d 39 36 35 |29747...|4890.965|
|00004690| 30 35 32 38 32 39 37 34 | 38 00 00 04 34 38 38 38 |05282974|8...4888|
|000046a0| 0d 39 36 37 34 38 30 38 | 37 34 33 34 37 00 00 04 |.9674808|74347...|
|000046b0| 34 38 36 38 0d 39 36 37 | 30 36 31 39 37 32 34 34 |4868.967|06197244|
|000046c0| 37 00 00 04 34 38 34 37 | 0d 39 39 30 35 39 39 36 |7...4847|.9905996|
|000046d0| 32 34 35 33 32 00 00 04 | 35 36 31 30 0d 39 36 37 |24532...|5610.967|
|000046e0| 32 32 31 32 32 39 35 39 | 34 00 00 04 34 38 36 31 |22122959|4...4861|
|000046f0| 0d 39 36 36 34 32 31 30 | 39 31 34 33 35 00 00 04 |.9664210|91435...|
|00004700| 32 37 37 31 0d 39 38 33 | 37 33 39 31 39 30 34 30 |2771.983|73919040|
|00004710| 39 00 00 04 35 33 32 30 | 0d 39 38 33 37 33 39 31 |9...5320|.9837391|
|00004720| 39 30 34 31 30 00 00 04 | 35 33 31 39 0d 39 38 32 |90410...|5319.982|
|00004730| 36 32 35 39 30 36 39 30 | 38 00 00 04 34 38 39 38 |62590690|8...4898|
|00004740| 0d 39 36 35 30 35 36 32 | 32 34 31 31 38 00 00 04 |.9650562|24118...|
|00004750| 34 38 35 30 0d 39 36 35 | 31 36 36 35 31 39 34 31 |4850.965|16651941|
|00004760| 36 00 00 04 34 38 38 32 | 0d 39 36 35 30 35 32 38 |6...4882|.9650528|
|00004770| 32 39 37 30 30 00 00 04 | 34 38 36 33 0d 39 36 35 |29700...|4863.965|
|00004780| 32 31 30 31 37 38 39 35 | 38 00 00 04 34 38 33 39 |21017895|8...4839|
|00004790| 0d 39 36 37 30 36 31 33 | 34 38 33 38 36 00 00 04 |.9670613|48386...|
|000047a0| 36 30 37 33 0d 39 36 38 | 38 30 32 30 33 39 31 37 |6073.968|80203917|
|000047b0| 39 00 00 04 33 39 38 34 | 0d 39 36 35 30 35 32 38 |9...3984|.9650528|
|000047c0| 32 39 37 30 31 00 00 04 | 34 38 36 34 0d 39 36 35 |29701...|4864.965|
|000047d0| 30 35 32 38 32 39 37 30 | 32 00 00 04 34 38 36 35 |05282970|2...4865|
|000047e0| 0d 39 36 37 32 31 38 39 | 36 31 38 36 30 00 00 04 |.9672189|61860...|
|000047f0| 33 32 32 36 0d 39 36 37 | 34 38 31 37 37 33 30 37 |3226.967|48177307|
|00004800| 34 00 00 04 34 38 35 35 | 0d 39 36 37 32 34 30 31 |4...4855|.9672401|
|00004810| 36 35 30 37 31 00 00 04 | 33 32 36 30 0d 39 38 33 |65071...|3260.983|
|00004820| 38 33 36 38 34 34 36 34 | 33 00 00 04 35 33 35 31 |83684464|3...5351|
|00004830| 0d 39 36 37 32 32 36 37 | 38 34 35 39 39 00 00 04 |.9672267|84599...|
|00004840| 34 38 35 31 0d 39 36 35 | 30 35 32 38 32 39 36 39 |4851.965|05282969|
|00004850| 36 00 00 04 31 30 37 35 | 0d 39 36 35 30 35 36 32 |6...1075|.9650562|
|00004860| 39 31 36 34 36 00 00 04 | 34 38 38 33 0d 39 36 37 |91646...|4883.967|
|00004870| 32 33 36 37 37 35 33 31 | 34 00 00 04 34 38 36 37 |23677531|4...4867|
|00004880| 0d 39 36 35 30 35 32 38 | 32 39 36 39 39 00 00 04 |.9650528|29699...|
|00004890| 34 38 36 32 0d 39 36 37 | 32 34 39 36 36 31 32 37 |4862.967|24966127|
|000048a0| 33 00 00 04 34 38 35 32 | 0d 39 36 37 34 37 39 33 |3...4852|.9674793|
|000048b0| 38 32 36 35 35 00 00 04 | 34 38 35 34 0d 39 36 35 |82655...|4854.965|
|000048c0| 30 35 32 38 32 39 37 31 | 33 00 00 04 34 38 34 38 |05282971|3...4848|
|000048d0| 0d 39 36 35 30 35 32 38 | 32 39 37 31 34 00 00 04 |.9650528|29714...|
|000048e0| 34 38 34 39 0d 39 36 37 | 30 36 31 39 39 30 33 37 |4849.967|06199037|
|000048f0| 39 00 00 04 34 38 37 37 | 0d 39 36 37 32 31 37 37 |9...4877|.9672177|
|00004900| 31 35 39 35 37 00 00 04 | 34 38 35 38 0d 39 36 37 |15957...|4858.967|
|00004910| 34 37 39 33 38 32 35 37 | 38 00 00 04 34 38 35 33 |47938257|8...4853|
|00004920| 0d 39 36 37 32 34 37 39 | 30 39 30 38 39 00 00 04 |.9672479|09089...|
|00004930| 33 32 38 31 0d 39 36 37 | 32 32 36 37 35 31 36 30 |3281.967|22675160|
|00004940| 33 00 00 04 34 38 37 38 | 0d 39 36 37 32 33 36 37 |3...4878|.9672367|
|00004950| 32 37 37 37 39 00 00 04 | 34 38 36 36 0d 39 36 37 |27779...|4866.967|
|00004960| 32 31 37 36 32 39 37 37 | 31 00 00 04 34 38 35 37 |21762977|1...4857|
|00004970| 0d 39 36 35 30 35 32 38 | 32 39 37 32 33 00 00 04 |.9650528|29723...|
|00004980| 31 30 38 39 0d 39 36 35 | 30 39 34 36 34 39 33 33 |1089.965|09464933|
|00004990| 38 00 00 04 34 38 35 36 | 0d 39 36 37 32 33 36 38 |8...4856|.9672368|
|000049a0| 33 37 37 30 31 00 00 04 | 34 38 38 34 0d 39 36 35 |37701...|4884.965|
|000049b0| 30 35 32 38 32 39 37 32 | 38 00 00 04 34 38 37 32 |05282972|8...4872|
|000049c0| 0d 39 36 35 30 35 32 38 | 32 39 37 33 31 00 00 04 |.9650528|29731...|
|000049d0| 34 38 33 37 0d 39 36 37 | 32 31 38 36 39 34 30 34 |4837.967|21869404|
|000049e0| 32 00 00 04 33 32 32 34 | 0d 39 36 35 31 37 32 39 |2...3224|.9651729|
|000049f0| 36 32 31 32 32 00 00 04 | 34 38 33 38 0d 39 36 37 |62122...|4838.967|
|00004a00| 32 34 36 34 37 35 38 32 | 32 00 00 04 34 38 37 39 |24647582|2...4879|
|00004a10| 0d 39 36 37 32 34 36 30 | 39 33 36 31 33 00 00 04 |.9672460|93613...|
|00004a20| 33 32 36 35 0d 39 36 35 | 30 35 32 38 32 39 37 33 |3265.965|05282973|
|00004a30| 38 00 00 04 34 38 38 31 | 0d 39 36 35 30 35 32 38 |8...4881|.9650528|
|00004a40| 32 39 37 34 31 00 00 04 | 31 31 39 39 0d 39 36 35 |29741...|1199.965|
|00004a50| 30 35 32 38 32 39 37 34 | 32 00 00 04 34 38 37 31 |05282974|2...4871|
|00004a60| 0d 39 36 35 30 35 32 38 | 32 39 37 34 33 00 00 04 |.9650528|29743...|
|00004a70| 34 38 37 30 0d 39 39 33 | 30 37 34 33 34 39 32 39 |4870.993|07434929|
|00004a80| 31 00 00 04 35 38 36 38 | 0d 39 36 35 30 35 32 38 |1...5868|.9650528|
|00004a90| 32 39 37 34 34 00 00 04 | 34 38 36 39 0d 39 36 35 |29744...|4869.965|
|00004aa0| 30 35 32 38 32 39 37 34 | 35 00 00 04 31 32 30 30 |05282974|5...1200|
|00004ab0| 0d 39 36 35 30 35 32 38 | 32 39 37 34 36 00 00 04 |.9650528|29746...|
|00004ac0| 34 38 38 39 18 00 0c 63 | 52 45 56 47 65 6e 65 72 |4889...c|REVGener|
|00004ad0| 61 6c 00 00 00 00 07 0f | 73 63 72 69 70 74 43 68 |al......|scriptCh|
|00004ae0| 65 63 6b 73 75 6d 00 00 | 10 94 03 89 67 94 d7 ee |ecksum..|....g...|
|00004af0| 57 d1 5c 1a 7c 8d 94 e8 | b3 0a 62 6f 6f 6b 6d 61 |W.\.|...|..bookma|
|00004b00| 72 6b 73 00 00 00 0c 68 | 61 6e 64 6c 65 72 4c 69 |rks....h|andlerLi|
|00004b10| 73 74 00 01 5c 70 72 65 | 4f 70 65 6e 53 74 61 63 |st..\pre|OpenStac|
|00004b20| 6b 0a 72 65 73 75 6d 65 | 53 74 61 63 6b 0a 64 65 |k.resume|Stack.de|
|00004b30| 6c 65 74 65 4b 65 79 0a | 72 65 76 4d 65 6e 75 4d |leteKey.|revMenuM|
|00004b40| 61 6e 61 67 65 72 49 6e | 69 74 69 61 6c 69 73 61 |anagerIn|itialisa|
|00004b50| 74 69 6f 6e 0a 72 65 76 | 52 65 73 65 74 0a 63 6c |tion.rev|Reset.cl|
|00004b60| 6f 73 65 53 74 61 63 6b | 52 65 71 75 65 73 74 0a |oseStack|Request.|
|00004b70| 63 6c 6f 73 65 53 74 61 | 63 6b 0a 72 65 76 49 6e |closeSta|ck.revIn|
|00004b80| 69 74 69 61 6c 69 73 65 | 46 69 65 6c 64 49 63 6f |itialise|FieldIco|
|00004b90| 6e 73 0a 72 65 76 4c 61 | 79 6f 75 74 4d 65 6e 75 |ns.revLa|youtMenu|
|00004ba0| 42 75 74 74 6f 6e 73 0a | 72 65 76 49 6e 69 74 69 |Buttons.|revIniti|
|00004bb0| 61 6c 69 73 65 0a 72 65 | 76 49 6e 69 74 69 61 6c |alise.re|vInitial|
|00004bc0| 69 73 65 46 6f 72 4e 65 | 77 4d 65 6e 75 0a 72 65 |iseForNe|wMenu.re|
|00004bd0| 76 46 69 6c 74 65 72 49 | 74 65 6d 4e 61 6d 65 0a |vFilterI|temName.|
|00004be0| 72 65 76 49 6e 69 74 69 | 61 6c 69 73 65 46 6f 72 |revIniti|aliseFor|
|00004bf0| 4e 6f 49 74 65 6d 53 65 | 6c 65 63 74 69 6f 6e 0a |NoItemSe|lection.|
|00004c00| 72 65 76 4d 65 6e 75 4c | 6f 6e 67 49 44 0a 72 65 |revMenuL|ongID.re|
|00004c10| 76 55 70 64 61 74 65 53 | 63 72 6f 6c 6c 62 61 72 |vUpdateS|crollbar|
|00004c20| 0a 72 65 76 52 65 73 65 | 74 54 72 69 61 6e 67 6c |.revRese|tTriangl|
|00004c30| 65 73 0a 72 65 76 55 70 | 64 61 74 65 46 69 65 6c |es.revUp|dateFiel|
|00004c40| 64 0a 72 65 76 47 65 6e | 65 72 61 74 65 49 74 65 |d.revGen|erateIte|
|00004c50| 6d 73 46 69 65 6c 64 0a | 72 65 76 44 65 6c 65 74 |msField.|revDelet|
|00004c60| 65 4d 65 6e 75 4d 61 6e | 61 67 65 72 47 72 6f 75 |eMenuMan|agerGrou|
|00004c70| 70 10 73 63 72 69 70 74 | 53 65 6c 65 63 74 69 6f |p.script|Selectio|
|00004c80| 6e 00 00 11 63 68 61 72 | 20 38 33 34 35 20 74 6f |n...char| 8345 to|
|00004c90| 20 38 33 34 34 0c 70 72 | 65 76 48 61 6e 64 6c 65 | 8344.pr|evHandle|
|00004ca0| 72 00 00 0d 72 65 76 49 | 6e 69 74 69 61 6c 69 73 |r...revI|nitialis|
|00004cb0| 65 0b 74 65 6d 70 53 63 | 72 69 70 74 00 00 00 07 |e.tempSc|ript....|
|00004cc0| 73 63 72 69 70 74 00 00 | 00 18 00 12 63 52 45 56 |script..|....cREV|
|00004cd0| 47 65 6f 6d 65 74 72 79 | 43 61 63 68 65 00 00 00 |Geometry|Cache...|
|00004ce0| 00 02 06 74 6f 74 61 6c | 00 00 02 36 37 06 6f 72 |...total|...67.or|
|00004cf0| 64 65 72 00 00 00 07 00 | 00 14 c7 07 00 00 0c bc |der.....|........|
|00004d00| 07 00 00 0c 98 07 00 00 | 0a d3 07 00 00 0c 9a 07 |........|........|
|00004d10| 00 00 0c c1 07 00 00 04 | af 07 00 00 0f 90 07 00 |........|........|
|00004d20| 00 04 b0 07 00 00 14 e7 | 07 00 00 14 c8 05 00 00 |........|........|
|00004d30| 04 23 00 09 42 61 63 6b | 64 72 6f 70 00 00 00 69 |.#..Back|drop...i|
|00004d40| 00 00 00 00 00 00 00 00 | 26 00 00 02 c4 00 2f 12 |........|&...../.|
|00004d50| 00 00 00 00 00 00 00 00 | 4b 40 00 02 00 01 ac ac |........|K@......|
|00004d60| ac ac ac ac 00 00 00 00 | 00 2a 00 04 02 bc 00 27 |........|.*.....'|
|00004d70| 00 00 00 01 06 05 00 00 | 04 2b 00 0a 4d 65 6e 75 |........|.+..Menu|
|00004d80| 20 54 79 70 65 00 00 00 | 69 00 00 00 00 00 00 00 | Type...|i.......|
|00004d90| 00 09 00 35 00 87 00 d8 | 08 00 00 00 00 00 15 53 |...5....|.......S|
|00004da0| 65 6c 65 63 74 20 45 78 | 69 73 74 69 6e 67 20 4d |elect Ex|isting M|
|00004db0| 65 6e 75 00 60 44 a9 04 | 00 00 00 00 00 00 00 0f |enu.`D..|........|
|00004dc0| 00 39 00 7d 00 15 00 00 | 01 00 00 00 00 00 00 00 |.9.}....|........|
|00004dd0| 08 00 00 00 00 00 10 43 | 72 65 61 74 65 20 4e 65 |.......C|reate Ne|
|00004de0| 77 20 4d 65 6e 75 00 60 | 44 a9 04 00 00 00 00 80 |w Menu.`|D.......|
|00004df0| 00 00 0d 00 f4 00 7d 00 | 15 00 00 00 00 00 00 01 |......}.|........|
|00004e00| 00 00 00 00 00 00 00 18 | 00 0c 63 52 45 56 47 65 |........|..cREVGe|
|00004e10| 6e 65 72 61 6c 00 00 00 | 00 02 0c 68 61 6e 64 6c |neral...|...handl|
|00004e20| 65 72 4c 69 73 74 00 00 | 00 0b 74 65 6d 70 53 63 |erList..|..tempSc|
|00004e30| 72 69 70 74 00 00 00 06 | 05 00 00 04 af 00 0c 49 |ript....|.......I|
|00004e40| 74 65 6d 20 49 6e 73 65 | 72 74 00 00 00 69 10 08 |tem Inse|rt...i..|
|00004e50| 22 6c 6f 63 61 6c 20 6c | 4d 6f 75 73 65 44 6f 77 |"local l|MouseDow|
|00004e60| 6e 2c 20 6c 42 6f 74 74 | 6f 6d 2c 20 6c 54 6f 70 |n, lBott|om, lTop|
|00004e70| 0a 0a 6f 6e 20 6d 6f 75 | 73 65 44 6f 77 6e 0a 20 |..on mou|seDown. |
|00004e80| 20 69 66 20 74 68 65 20 | 6f 77 6e 65 72 20 6f 66 | if the |owner of|
|00004e90| 20 74 68 65 20 74 61 72 | 67 65 74 20 69 73 20 6d | the tar|get is m|
|00004ea0| 65 20 74 68 65 6e 20 0a | 20 20 20 20 70 75 74 20 |e then .| put |
|00004eb0| 74 72 75 65 20 69 6e 74 | 6f 20 6c 4d 6f 75 73 65 |true int|o lMouse|
|00004ec0| 44 6f 77 6e 0a 20 20 20 | 20 70 75 74 20 74 68 65 |Down. | put the|
|00004ed0| 20 74 6f 70 20 6f 66 20 | 66 6c 64 20 22 4d 65 6e | top of |fld "Men|
|00004ee0| 75 20 49 74 65 6d 73 22 | 20 69 6e 74 6f 20 6c 54 |u Items"| into lT|
|00004ef0| 6f 70 0a 20 20 20 20 70 | 75 74 20 74 68 65 20 62 |op. p|ut the b|
|00004f00| 6f 74 74 6f 6d 20 6f 66 | 20 66 6c 64 20 22 4d 65 |ottom of| fld "Me|
|00004f10| 6e 75 20 49 74 65 6d 73 | 22 20 69 6e 74 6f 20 6c |nu Items|" into l|
|00004f20| 42 6f 74 74 6f 6d 0a 20 | 20 65 6e 64 20 69 66 0a |Bottom. | end if.|
|00004f30| 20 20 70 61 73 73 20 6d | 6f 75 73 65 44 6f 77 6e | pass m|ouseDown|
|00004f40| 0a 65 6e 64 20 6d 6f 75 | 73 65 44 6f 77 6e 0a 0a |.end mou|seDown..|
|00004f50| 6f 6e 20 6d 6f 75 73 65 | 55 70 0a 20 20 69 66 20 |on mouse|Up. if |
|00004f60| 74 68 65 20 6f 77 6e 65 | 72 20 6f 66 20 74 68 65 |the owne|r of the|
|00004f70| 20 74 61 72 67 65 74 20 | 69 73 20 6d 65 20 74 68 | target |is me th|
|00004f80| 65 6e 20 0a 20 20 20 20 | 70 75 74 20 66 61 6c 73 |en . |put fals|
|00004f90| 65 20 69 6e 74 6f 20 6c | 4d 6f 75 73 65 44 6f 77 |e into l|MouseDow|
|00004fa0| 6e 0a 20 20 20 20 72 65 | 76 4d 6f 75 73 65 52 65 |n. re|vMouseRe|
|00004fb0| 6c 65 61 73 65 64 0a 20 | 20 65 6e 64 20 69 66 0a |leased. | end if.|
|00004fc0| 20 20 70 61 73 73 20 6d | 6f 75 73 65 55 70 0a 65 | pass m|ouseUp.e|
|00004fd0| 6e 64 20 6d 6f 75 73 65 | 55 70 0a 0a 6f 6e 20 6d |nd mouse|Up..on m|
|00004fe0| 6f 75 73 65 52 65 6c 65 | 61 73 65 0a 20 20 69 66 |ouseRele|ase. if|
|00004ff0| 20 74 68 65 20 6f 77 6e | 65 72 20 6f 66 20 74 68 | the own|er of th|
|00005000| 65 20 74 61 72 67 65 74 | 20 69 73 20 6d 65 20 74 |e target| is me t|
|00005010| 68 65 6e 20 0a 20 20 20 | 20 70 75 74 20 66 61 6c |hen . | put fal|
|00005020| 73 65 20 69 6e 74 6f 20 | 6c 4d 6f 75 73 65 44 6f |se into |lMouseDo|
|00005030| 77 6e 0a 20 20 20 20 72 | 65 76 4d 6f 75 73 65 52 |wn. r|evMouseR|
|00005040| 65 6c 65 61 73 65 64 0a | 20 20 65 6e 64 20 69 66 |eleased.| end if|
|00005050| 0a 20 20 70 61 73 73 20 | 6d 6f 75 73 65 52 65 6c |. pass |mouseRel|
|00005060| 65 61 73 65 0a 65 6e 64 | 20 6d 6f 75 73 65 52 65 |ease.end| mouseRe|
|00005070| 6c 65 61 73 65 0a 0a 6f | 6e 20 6d 6f 75 73 65 4d |lease..o|n mouseM|
|00005080| 6f 76 65 20 78 2c 79 0a | 20 20 69 66 20 74 68 65 |ove x,y.| if the|
|00005090| 20 6f 77 6e 65 72 20 6f | 66 20 74 68 65 20 74 61 | owner o|f the ta|
|000050a0| 72 67 65 74 20 69 73 20 | 6e 6f 74 20 6d 65 20 6f |rget is |not me o|
|000050b0| 72 20 74 68 65 20 74 65 | 78 74 20 6f 66 20 66 6c |r the te|xt of fl|
|000050c0| 64 20 22 4d 65 6e 75 20 | 49 74 65 6d 73 22 20 69 |d "Menu |Items" i|
|000050d0| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 70 61 73 |s empty |then pas|
|000050e0| 73 20 6d 6f 75 73 65 4d | 6f 76 65 0a 20 20 69 66 |s mouseM|ove. if|
|000050f0| 20 6c 4d 6f 75 73 65 44 | 6f 77 6e 20 20 61 6e 64 | lMouseD|own and|
|00005100| 20 79 20 3e 20 6c 54 6f | 70 20 61 6e 64 20 79 20 | y > lTo|p and y |
|00005110| 3c 20 6c 42 6f 74 74 6f | 6d 20 0a 20 20 74 68 65 |< lBotto|m . the|
|00005120| 6e 20 73 65 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 |n set th|e loc of|
|00005130| 20 6d 65 20 74 6f 20 69 | 74 65 6d 20 31 20 6f 66 | me to i|tem 1 of|
|00005140| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 6d 65 2c 79 | the loc| of me,y|
|00005150| 0a 20 20 70 61 73 73 20 | 6d 6f 75 73 65 4d 6f 76 |. pass |mouseMov|
|00005160| 65 0a 65 6e 64 20 6d 6f | 75 73 65 4d 6f 76 65 0a |e.end mo|useMove.|
|00005170| 0a 6f 6e 20 72 65 76 4d | 6f 75 73 65 52 65 6c 65 |.on revM|ouseRele|
|00005180| 61 73 65 64 0a 20 20 67 | 6c 6f 62 61 6c 20 67 52 |ased. g|lobal gR|
|00005190| 45 56 54 65 78 74 48 65 | 69 67 68 74 0a 20 20 70 |EVTextHe|ight. p|
|000051a0| 75 74 20 74 68 65 20 6d | 6f 75 73 65 56 20 2d 20 |ut the m|ouseV - |
|000051b0| 6c 54 6f 70 20 69 6e 74 | 6f 20 74 4d 6f 75 73 65 |lTop int|o tMouse|
|000051c0| 56 0a 20 20 69 66 20 74 | 68 65 20 73 63 72 6f 6c |V. if t|he scrol|
|000051d0| 6c 20 6f 66 20 66 6c 64 | 20 22 4d 65 6e 75 20 49 |l of fld| "Menu I|
|000051e0| 74 65 6d 73 22 20 69 73 | 20 30 20 74 68 65 6e 20 |tems" is| 0 then |
|000051f0| 73 75 62 74 72 61 63 74 | 20 35 20 66 72 6f 6d 20 |subtract| 5 from |
|00005200| 74 4d 6f 75 73 65 56 20 | 2d 2d 20 61 64 6a 75 73 |tMouseV |-- adjus|
|00005210| 74 6d 65 6e 74 20 66 61 | 63 74 6f 72 0a 20 20 70 |tment fa|ctor. p|
|00005220| 75 74 20 6d 61 78 28 30 | 2c 72 6f 75 6e 64 28 74 |ut max(0|,round(t|
|00005230| 4d 6f 75 73 65 56 2f 67 | 52 45 56 54 65 78 74 48 |MouseV/g|REVTextH|
|00005240| 65 69 67 68 74 29 29 20 | 69 6e 74 6f 20 74 4c 69 |eight)) |into tLi|
|00005250| 6e 65 53 63 72 6f 6c 6c | 0a 20 20 0a 20 20 69 66 |neScroll|. . if|
|00005260| 20 74 4c 69 6e 65 53 63 | 72 6f 6c 6c 20 3e 20 74 | tLineSc|roll > t|
|00005270| 68 65 20 6e 75 6d 20 6f | 66 20 6c 69 6e 65 73 20 |he num o|f lines |
|00005280| 69 6e 20 66 6c 64 20 22 | 4d 65 6e 75 20 49 74 65 |in fld "|Menu Ite|
|00005290| 6d 73 22 0a 20 20 74 68 | 65 6e 20 70 75 74 20 74 |ms". th|en put t|
|000052a0| 68 65 20 6e 75 6d 20 6f | 66 20 6c 69 6e 65 73 20 |he num o|f lines |
|000052b0| 69 6e 20 66 6c 64 20 22 | 4d 65 6e 75 20 49 74 65 |in fld "|Menu Ite|
|000052c0| 6d 73 22 20 69 6e 74 6f | 20 74 4c 69 6e 65 53 63 |ms" into| tLineSc|
|000052d0| 72 6f 6c 6c 0a 20 20 70 | 75 74 20 28 74 4c 69 6e |roll. p|ut (tLin|
|000052e0| 65 53 63 72 6f 6c 6c 20 | 2a 20 67 52 45 56 54 65 |eScroll |* gREVTe|
|000052f0| 78 74 48 65 69 67 68 74 | 29 20 2b 20 6c 54 6f 70 |xtHeight|) + lTop|
|00005300| 20 2d 20 28 74 68 65 20 | 73 63 72 6f 6c 6c 20 6f | - (the |scroll o|
|00005310| 66 20 66 6c 64 20 22 4d | 65 6e 75 20 49 74 65 6d |f fld "M|enu Item|
|00005320| 73 22 20 6d 6f 64 20 67 | 52 45 56 54 65 78 74 48 |s" mod g|REVTextH|
|00005330| 65 69 67 68 74 29 20 2b | 20 35 20 69 6e 74 6f 20 |eight) +| 5 into |
|00005340| 74 56 65 72 74 69 63 61 | 6c 0a 20 20 69 66 20 74 |tVertica|l. if t|
|00005350| 56 65 72 74 69 63 61 6c | 20 3e 20 6c 42 6f 74 74 |Vertical| > lBott|
|00005360| 6f 6d 20 74 68 65 6e 20 | 70 75 74 20 6c 42 6f 74 |om then |put lBot|
|00005370| 74 6f 6d 20 69 6e 74 6f | 20 74 56 65 72 74 69 63 |tom into| tVertic|
|00005380| 61 6c 0a 20 20 69 66 20 | 74 56 65 72 74 69 63 61 |al. if |tVertica|
|00005390| 6c 20 3c 20 6c 54 6f 70 | 20 74 68 65 6e 20 70 75 |l < lTop| then pu|
|000053a0| 74 20 6c 54 6f 70 20 69 | 6e 74 6f 20 74 56 65 72 |t lTop i|nto tVer|
|000053b0| 74 69 63 61 6c 0a 20 20 | 73 65 74 20 74 68 65 20 |tical. |set the |
|000053c0| 6c 6f 63 20 6f 66 20 6d | 65 20 74 6f 20 69 74 65 |loc of m|e to ite|
|000053d0| 6d 20 31 20 6f 66 20 74 | 68 65 20 6c 6f 63 20 6f |m 1 of t|he loc o|
|000053e0| 66 20 6d 65 2c 20 74 56 | 65 72 74 69 63 61 6c 0a |f me, tV|ertical.|
|000053f0| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 4c 69 | set th|e cREVLi|
|00005400| 6e 65 20 6f 66 20 6d 65 | 20 74 6f 20 72 6f 75 6e |ne of me| to roun|
|00005410| 64 20 28 74 68 65 20 73 | 63 72 6f 6c 6c 20 6f 66 |d (the s|croll of|
|00005420| 20 66 6c 64 20 22 4d 65 | 6e 75 20 49 74 65 6d 73 | fld "Me|nu Items|
|00005430| 22 2f 67 52 45 56 54 65 | 78 74 48 65 69 67 68 74 |"/gREVTe|xtHeight|
|00005440| 29 20 2b 20 74 4c 69 6e | 65 53 63 72 6f 6c 6c 0a |) + tLin|eScroll.|
|00005450| 65 6e 64 20 72 65 76 4d | 6f 75 73 65 52 65 6c 65 |end revM|ouseRele|
|00005460| 61 73 65 64 0a 0a 6f 6e | 20 6d 6f 75 73 65 44 6f |ased..on| mouseDo|
|00005470| 75 62 6c 65 55 70 0a 20 | 20 69 66 20 74 68 65 20 |ubleUp. | if the |
|00005480| 6f 77 6e 65 72 20 6f 66 | 20 74 68 65 20 74 61 72 |owner of| the tar|
|00005490| 67 65 74 20 69 73 20 6e | 6f 74 20 6d 65 20 74 68 |get is n|ot me th|
|000054a0| 65 6e 20 70 61 73 73 20 | 6d 6f 75 73 65 44 6f 75 |en pass |mouseDou|
|000054b0| 62 6c 65 55 70 0a 20 20 | 70 75 74 20 74 68 65 20 |bleUp. |put the |
|000054c0| 6e 75 6d 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 20 |num of l|ines in |
|000054d0| 66 6c 64 20 22 4d 65 6e | 75 20 49 74 65 6d 73 22 |fld "Men|u Items"|
|000054e0| 20 69 6e 74 6f 20 74 4e | 75 6d 4c 69 6e 65 73 0a | into tN|umLines.|
|000054f0| 20 20 73 65 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 | set th|e loc of|
|00005500| 20 6d 65 20 74 6f 20 69 | 74 65 6d 20 31 20 6f 66 | me to i|tem 1 of|
|00005510| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 6d 65 2c 20 | the loc| of me, |
|00005520| 6d 69 6e 28 6c 42 6f 74 | 74 6f 6d 2c 74 68 65 20 |min(lBot|tom,the |
|00005530| 66 6f 72 6d 61 74 74 65 | 64 54 6f 70 20 6f 66 20 |formatte|dTop of |
|00005540| 6c 69 6e 65 20 74 4e 75 | 6d 4c 69 6e 65 73 20 6f |line tNu|mLines o|
|00005550| 66 20 66 6c 64 20 22 4d | 65 6e 75 20 49 74 65 6d |f fld "M|enu Item|
|00005560| 73 22 20 2b 20 31 36 29 | 0a 20 20 70 75 74 20 74 |s" + 16)|. put t|
|00005570| 68 65 20 66 6f 72 6d 61 | 74 74 65 64 48 65 69 67 |he forma|ttedHeig|
|00005580| 68 74 20 6f 66 20 66 6c | 64 20 22 4d 65 6e 75 20 |ht of fl|d "Menu |
|00005590| 49 74 65 6d 73 22 20 69 | 6e 74 6f 20 74 46 6f 72 |Items" i|nto tFor|
|000055a0| 6d 61 74 74 65 64 48 65 | 69 67 68 74 0a 20 20 73 |mattedHe|ight. s|
|000055b0| 65 74 20 74 68 65 20 73 | 63 72 6f 6c 6c 20 6f 66 |et the s|croll of|
|000055c0| 20 66 6c 64 20 22 4d 65 | 6e 75 20 49 74 65 6d 73 | fld "Me|nu Items|
|000055d0| 22 20 74 6f 20 74 46 6f | 72 6d 61 74 74 65 64 48 |" to tFo|rmattedH|
|000055e0| 65 69 67 68 74 0a 20 20 | 73 65 74 20 74 68 65 20 |eight. |set the |
|000055f0| 74 68 75 6d 62 50 6f 73 | 69 74 69 6f 6e 20 6f 66 |thumbPos|ition of|
|00005600| 20 73 62 20 22 4d 65 6e | 75 20 49 74 65 6d 73 22 | sb "Men|u Items"|
|00005610| 20 74 6f 20 74 46 6f 72 | 6d 61 74 74 65 64 48 65 | to tFor|mattedHe|
|00005620| 69 67 68 74 0a 20 20 73 | 65 74 20 74 68 65 20 63 |ight. s|et the c|
|00005630| 52 45 56 4c 69 6e 65 20 | 6f 66 20 6d 65 20 74 6f |REVLine |of me to|
|00005640| 20 74 4e 75 6d 4c 69 6e | 65 73 0a 20 20 70 61 73 | tNumLin|es. pas|
|00005650| 73 20 6d 6f 75 73 65 44 | 6f 75 62 6c 65 55 70 0a |s mouseD|oubleUp.|
|00005660| 65 6e 64 20 6d 6f 75 73 | 65 44 6f 75 62 6c 65 55 |end mous|eDoubleU|
|00005670| 70 0a 00 00 00 00 00 80 | 00 00 ab fc 03 00 d1 00 |p.......|........|
|00005680| 15 00 00 00 04 09 63 52 | 45 56 4c 69 6e 65 00 00 |......cR|EVLine..|
|00005690| 00 0c 63 52 45 56 48 69 | 64 65 4c 6f 63 00 00 06 |..cREVHi|deLoc...|
|000056a0| 37 30 2c 35 30 30 10 63 | 52 45 56 44 6f 6e 74 44 |70,500.c|REVDontD|
|000056b0| 69 73 61 62 6c 65 00 00 | 04 74 72 75 65 0b 63 52 |isable..|.true.cR|
|000056c0| 45 56 4d 65 6d 4c 6f 63 | 00 00 07 32 34 37 2c 2d |EVMemLoc|...247,-|
|000056d0| 32 31 18 00 0c 63 52 45 | 56 47 65 6e 65 72 61 6c |21...cRE|VGeneral|
|000056e0| 00 00 00 00 08 0f 73 63 | 72 69 70 74 43 68 65 63 |......sc|riptChec|
|000056f0| 6b 73 75 6d 00 00 10 bc | dc 3d a2 21 f2 4c a0 4f |ksum....|.=.!.L.O|
|00005700| 3c bb 61 e1 2d d0 03 0c | 72 65 76 55 6e 69 71 75 |<.a.-...|revUniqu|
|00005710| 65 49 44 00 00 0c 39 36 | 35 30 35 32 38 32 39 37 |eID...96|50528297|
|00005720| 34 31 0a 62 6f 6f 6b 6d | 61 72 6b 73 00 00 00 0c |41.bookm|arks....|
|00005730| 68 61 6e 64 6c 65 72 4c | 69 73 74 00 00 47 6d 6f |handlerL|ist..Gmo|
|00005740| 75 73 65 44 6f 77 6e 0a | 6d 6f 75 73 65 55 70 0a |useDown.|mouseUp.|
|00005750| 6d 6f 75 73 65 52 65 6c | 65 61 73 65 0a 6d 6f 75 |mouseRel|ease.mou|
|00005760| 73 65 4d 6f 76 65 0a 72 | 65 76 4d 6f 75 73 65 52 |seMove.r|evMouseR|
|00005770| 65 6c 65 61 73 65 64 0a | 6d 6f 75 73 65 44 6f 75 |eleased.|mouseDou|
|00005780| 62 6c 65 55 70 0b 74 65 | 6d 70 53 63 72 69 70 74 |bleUp.te|mpScript|
|00005790| 00 00 00 0c 70 72 65 76 | 48 61 6e 64 6c 65 72 00 |....prev|Handler.|
|000057a0| 00 0d 6d 6f 75 73 65 44 | 6f 75 62 6c 65 55 70 10 |..mouseD|oubleUp.|
|000057b0| 73 63 72 69 70 74 53 65 | 6c 65 63 74 69 6f 6e 00 |scriptSe|lection.|
|000057c0| 00 0f 63 68 61 72 20 36 | 34 38 20 74 6f 20 36 34 |..char 6|48 to 64|
|000057d0| 37 07 73 63 72 69 70 74 | 00 00 00 12 00 00 13 05 |7.script|........|
|000057e0| 00 00 00 00 4b 06 00 01 | 00 01 f8 f8 98 98 60 60 |....K...|......``|
|000057f0| 00 00 80 00 00 b1 fc 07 | 00 c4 00 0c 00 00 00 01 |........|........|
|00005800| 10 63 52 45 56 44 6f 6e | 74 44 69 73 61 62 6c 65 |.cREVDon|tDisable|
|00005810| 00 00 04 74 72 75 65 00 | 00 00 03 00 03 00 02 00 |...true.|........|
|00005820| b3 fc 0d 01 73 fc 0d 18 | 00 0c 63 52 45 56 47 65 |....s...|..cREVGe|
|00005830| 6e 65 72 61 6c 00 00 00 | 00 06 0c 72 65 76 55 6e |neral...|...revUn|
|00005840| 69 71 75 65 49 44 00 00 | 0c 39 36 35 30 35 32 38 |iqueID..|.9650528|
|00005850| 32 39 37 34 34 0a 62 6f | 6f 6b 6d 61 72 6b 73 00 |29744.bo|okmarks.|
|00005860| 00 00 0c 68 61 6e 64 6c | 65 72 4c 69 73 74 00 00 |...handl|erList..|
|00005870| 00 0b 74 65 6d 70 53 63 | 72 69 70 74 00 00 00 0c |..tempSc|ript....|
|00005880| 70 72 65 76 48 61 6e 64 | 6c 65 72 00 00 00 10 73 |prevHand|ler....s|
|00005890| 63 72 69 70 74 53 65 6c | 65 63 74 69 6f 6e 00 00 |criptSel|ection..|
|000058a0| 0b 63 68 61 72 20 31 20 | 74 6f 20 30 08 00 00 13 |.char 1 |to 0....|
|000058b0| 06 00 0b 4e 65 77 20 42 | 75 74 74 6f 6e 00 02 42 |...New B|utton..B|
|000058c0| 0a 00 00 00 00 00 80 00 | 01 6d fc 07 00 0b 00 0d |........|.m......|
|000058d0| 00 00 00 01 10 63 52 45 | 56 44 6f 6e 74 44 69 73 |.....cRE|VDontDis|
|000058e0| 61 62 6c 65 00 00 04 74 | 72 75 65 00 00 00 00 00 |able...t|rue.....|
|000058f0| 00 00 00 00 00 00 00 00 | 03 16 dc 00 00 00 00 00 |........|........|
|00005900| 00 01 00 00 00 00 00 00 | 00 18 00 0c 63 52 45 56 |........|....cREV|
|00005910| 47 65 6e 65 72 61 6c 00 | 00 00 00 01 0c 72 65 76 |General.|.....rev|
|00005920| 55 6e 69 71 75 65 49 44 | 00 00 0c 39 36 35 30 35 |UniqueID|...96505|
|00005930| 32 38 32 39 37 34 33 09 | 00 00 03 ea 00 09 00 00 |2829743.|........|
|00005940| 00 00 00 08 00 00 13 07 | 00 0b 4e 65 77 20 42 75 |........|..New Bu|
|00005950| 74 74 6f 6e 00 02 42 0a | 00 00 00 00 00 80 00 00 |tton..B.|........|
|00005960| af fc 07 00 0b 00 0d 00 | 00 00 01 10 63 52 45 56 |........|....cREV|
|00005970| 44 6f 6e 74 44 69 73 61 | 62 6c 65 00 00 04 74 72 |DontDisa|ble...tr|
|00005980| 75 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 03 |ue......|........|
|00005990| 16 db 00 00 00 00 00 00 | 01 00 00 00 00 00 00 00 |........|........|
|000059a0| 18 00 0c 63 52 45 56 47 | 65 6e 65 72 61 6c 00 00 |...cREVG|eneral..|
|000059b0| 00 00 01 0c 72 65 76 55 | 6e 69 71 75 65 49 44 00 |....revU|niqueID.|
|000059c0| 00 0c 39 36 35 30 35 32 | 38 32 39 37 34 32 09 00 |..965052|829742..|
|000059d0| 00 03 ea 00 09 00 00 00 | 00 00 06 05 00 00 04 b0 |........|........|
|000059e0| 00 0c 4d 65 6e 75 20 49 | 6e 73 65 72 74 00 00 00 |..Menu I|nsert...|
|000059f0| 69 10 08 42 6c 6f 63 61 | 6c 20 6c 4d 6f 75 73 65 |i..Bloca|l lMouse|
|00005a00| 44 6f 77 6e 2c 20 6c 42 | 6f 74 74 6f 6d 2c 20 6c |Down, lB|ottom, l|
|00005a10| 54 6f 70 0a 0a 6f 6e 20 | 6d 6f 75 73 65 44 6f 77 |Top..on |mouseDow|
|00005a20| 6e 0a 20 20 69 66 20 74 | 68 65 20 6f 77 6e 65 72 |n. if t|he owner|
|00005a30| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 69 | of the |target i|
|00005a40| 73 20 6d 65 20 74 68 65 | 6e 20 0a 20 20 20 20 70 |s me the|n . p|
|00005a50| 75 74 20 74 72 75 65 20 | 69 6e 74 6f 20 6c 4d 6f |ut true |into lMo|
|00005a60| 75 73 65 44 6f 77 6e 0a | 20 20 20 20 70 75 74 20 |useDown.| put |
|00005a70| 74 68 65 20 74 6f 70 20 | 6f 66 20 66 6c 64 20 22 |the top |of fld "|
|00005a80| 4d 65 6e 75 20 42 75 74 | 74 6f 6e 73 22 20 69 6e |Menu But|tons" in|
|00005a90| 74 6f 20 6c 54 6f 70 0a | 20 20 20 20 70 75 74 20 |to lTop.| put |
|00005aa0| 74 68 65 20 62 6f 74 74 | 6f 6d 20 6f 66 20 66 6c |the bott|om of fl|
|00005ab0| 64 20 22 4d 65 6e 75 20 | 42 75 74 74 6f 6e 73 22 |d "Menu |Buttons"|
|00005ac0| 20 69 6e 74 6f 20 6c 42 | 6f 74 74 6f 6d 0a 20 20 | into lB|ottom. |
|00005ad0| 65 6e 64 20 69 66 0a 20 | 20 70 61 73 73 20 6d 6f |end if. | pass mo|
|00005ae0| 75 73 65 44 6f 77 6e 0a | 65 6e 64 20 6d 6f 75 73 |useDown.|end mous|
|00005af0| 65 44 6f 77 6e 0a 0a 6f | 6e 20 6d 6f 75 73 65 55 |eDown..o|n mouseU|
|00005b00| 70 0a 20 20 69 66 20 74 | 68 65 20 6f 77 6e 65 72 |p. if t|he owner|
|00005b10| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 69 | of the |target i|
|00005b20| 73 20 6d 65 20 74 68 65 | 6e 20 0a 20 20 20 20 70 |s me the|n . p|
|00005b30| 75 74 20 66 61 6c 73 65 | 20 69 6e 74 6f 20 6c 4d |ut false| into lM|
|00005b40| 6f 75 73 65 44 6f 77 6e | 0a 20 20 20 20 72 65 76 |ouseDown|. rev|
|00005b50| 4d 6f 75 73 65 52 65 6c | 65 61 73 65 64 0a 20 20 |MouseRel|eased. |
|00005b60| 65 6e 64 20 69 66 0a 20 | 20 70 61 73 73 20 6d 6f |end if. | pass mo|
|00005b70| 75 73 65 55 70 0a 65 6e | 64 20 6d 6f 75 73 65 55 |useUp.en|d mouseU|
|00005b80| 70 0a 0a 6f 6e 20 6d 6f | 75 73 65 52 65 6c 65 61 |p..on mo|useRelea|
|00005b90| 73 65 0a 20 20 69 66 20 | 74 68 65 20 6f 77 6e 65 |se. if |the owne|
|00005ba0| 72 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |r of the| target |
|00005bb0| 69 73 20 6d 65 20 74 68 | 65 6e 20 0a 20 20 20 20 |is me th|en . |
|00005bc0| 70 75 74 20 66 61 6c 73 | 65 20 69 6e 74 6f 20 6c |put fals|e into l|
|00005bd0| 4d 6f 75 73 65 44 6f 77 | 6e 0a 20 20 20 20 72 65 |MouseDow|n. re|
|00005be0| 76 4d 6f 75 73 65 52 65 | 6c 65 61 73 65 64 0a 20 |vMouseRe|leased. |
|00005bf0| 20 65 6e 64 20 69 66 0a | 20 20 70 61 73 73 20 6d | end if.| pass m|
|00005c00| 6f 75 73 65 52 65 6c 65 | 61 73 65 0a 65 6e 64 20 |ouseRele|ase.end |
|00005c10| 6d 6f 75 73 65 52 65 6c | 65 61 73 65 0a 0a 6f 6e |mouseRel|ease..on|
|00005c20| 20 6d 6f 75 73 65 4d 6f | 76 65 20 78 2c 79 0a 20 | mouseMo|ve x,y. |
|00005c30| 20 69 66 20 74 68 65 20 | 6f 77 6e 65 72 20 6f 66 | if the |owner of|
|00005c40| 20 74 68 65 20 74 61 72 | 67 65 74 20 69 73 20 6e | the tar|get is n|
|00005c50| 6f 74 20 6d 65 20 6f 72 | 20 74 68 65 20 74 65 78 |ot me or| the tex|
|00005c60| 74 20 6f 66 20 66 6c 64 | 20 22 4d 65 6e 75 20 42 |t of fld| "Menu B|
|00005c70| 75 74 74 6f 6e 73 22 20 | 69 73 20 65 6d 70 74 79 |uttons" |is empty|
|00005c80| 20 74 68 65 6e 20 70 61 | 73 73 20 6d 6f 75 73 65 | then pa|ss mouse|
|00005c90| 4d 6f 76 65 0a 20 20 69 | 66 20 6c 4d 6f 75 73 65 |Move. i|f lMouse|
|00005ca0| 44 6f 77 6e 20 20 61 6e | 64 20 79 20 3e 20 6c 54 |Down an|d y > lT|
|00005cb0| 6f 70 20 61 6e 64 20 79 | 20 3c 20 6c 42 6f 74 74 |op and y| < lBott|
|00005cc0| 6f 6d 20 0a 20 20 74 68 | 65 6e 20 73 65 74 20 74 |om . th|en set t|
|00005cd0| 68 65 20 6c 6f 63 20 6f | 66 20 6d 65 20 74 6f 20 |he loc o|f me to |
|00005ce0| 69 74 65 6d 20 31 20 6f | 66 20 74 68 65 20 6c 6f |item 1 o|f the lo|
|00005cf0| 63 20 6f 66 20 6d 65 2c | 79 0a 20 20 70 61 73 73 |c of me,|y. pass|
|00005d00| 20 6d 6f 75 73 65 4d 6f | 76 65 0a 65 6e 64 20 6d | mouseMo|ve.end m|
|00005d10| 6f 75 73 65 4d 6f 76 65 | 0a 0a 6f 6e 20 72 65 76 |ouseMove|..on rev|
|00005d20| 4d 6f 75 73 65 52 65 6c | 65 61 73 65 64 0a 20 20 |MouseRel|eased. |
|00005d30| 67 6c 6f 62 61 6c 20 67 | 52 45 56 54 65 78 74 48 |global g|REVTextH|
|00005d40| 65 69 67 68 74 0a 20 20 | 70 75 74 20 74 68 65 20 |eight. |put the |
|00005d50| 6d 6f 75 73 65 56 20 2d | 20 6c 54 6f 70 20 69 6e |mouseV -| lTop in|
|00005d60| 74 6f 20 74 4d 6f 75 73 | 65 56 0a 20 20 69 66 20 |to tMous|eV. if |
|00005d70| 74 68 65 20 73 63 72 6f | 6c 6c 20 6f 66 20 66 6c |the scro|ll of fl|
|00005d80| 64 20 22 4d 65 6e 75 20 | 42 75 74 74 6f 6e 73 22 |d "Menu |Buttons"|
|00005d90| 20 69 73 20 30 20 74 68 | 65 6e 20 0a 20 20 20 20 | is 0 th|en . |
|00005da0| 73 75 62 74 72 61 63 74 | 20 35 20 66 72 6f 6d 20 |subtract| 5 from |
|00005db0| 74 4d 6f 75 73 65 56 20 | 2d 2d 20 61 64 6a 75 73 |tMouseV |-- adjus|
|00005dc0| 74 6d 65 6e 74 20 66 61 | 63 74 6f 72 0a 20 20 20 |tment fa|ctor. |
|00005dd0| 20 70 75 74 20 6d 61 78 | 28 30 2c 72 6f 75 6e 64 | put max|(0,round|
|00005de0| 28 74 4d 6f 75 73 65 56 | 2f 67 52 45 56 54 65 78 |(tMouseV|/gREVTex|
|00005df0| 74 48 65 69 67 68 74 29 | 29 20 69 6e 74 6f 20 74 |tHeight)|) into t|
|00005e00| 4c 69 6e 65 53 63 72 6f | 6c 6c 0a 20 20 65 6c 73 |LineScro|ll. els|
|00005e10| 65 20 70 75 74 20 6d 61 | 78 28 31 2c 72 6f 75 6e |e put ma|x(1,roun|
|00005e20| 64 28 74 4d 6f 75 73 65 | 56 2f 67 52 45 56 54 65 |d(tMouse|V/gREVTe|
|00005e30| 78 74 48 65 69 67 68 74 | 29 29 20 69 6e 74 6f 20 |xtHeight|)) into |
|00005e40| 74 4c 69 6e 65 53 63 72 | 6f 6c 6c 0a 20 20 0a 20 |tLineScr|oll. . |
|00005e50| 20 69 66 20 74 4c 69 6e | 65 53 63 72 6f 6c 6c 20 | if tLin|eScroll |
|00005e60| 3e 20 74 68 65 20 6e 75 | 6d 20 6f 66 20 6c 69 6e |> the nu|m of lin|
|00005e70| 65 73 20 69 6e 20 66 6c | 64 20 22 4d 65 6e 75 20 |es in fl|d "Menu |
|00005e80| 42 75 74 74 6f 6e 73 22 | 0a 20 20 74 68 65 6e 20 |Buttons"|. then |
|00005e90| 70 75 74 20 74 68 65 20 | 6e 75 6d 20 6f 66 20 6c |put the |num of l|
|00005ea0| 69 6e 65 73 20 69 6e 20 | 66 6c 64 20 22 4d 65 6e |ines in |fld "Men|
|00005eb0| 75 20 42 75 74 74 6f 6e | 73 22 20 69 6e 74 6f 20 |u Button|s" into |
|00005ec0| 74 4c 69 6e 65 53 63 72 | 6f 6c 6c 0a 20 20 70 75 |tLineScr|oll. pu|
|00005ed0| 74 20 28 74 4c 69 6e 65 | 53 63 72 6f 6c 6c 20 2a |t (tLine|Scroll *|
|00005ee0| 20 67 52 45 56 54 65 78 | 74 48 65 69 67 68 74 29 | gREVTex|tHeight)|
|00005ef0| 20 2b 20 6c 54 6f 70 20 | 2d 20 28 74 68 65 20 73 | + lTop |- (the s|
|00005f00| 63 72 6f 6c 6c 20 6f 66 | 20 66 6c 64 20 22 4d 65 |croll of| fld "Me|
|00005f10| 6e 75 20 42 75 74 74 6f | 6e 73 22 20 6d 6f 64 20 |nu Butto|ns" mod |
|00005f20| 67 52 45 56 54 65 78 74 | 48 65 69 67 68 74 29 20 |gREVText|Height) |
|00005f30| 2b 20 35 20 69 6e 74 6f | 20 74 56 65 72 74 69 63 |+ 5 into| tVertic|
|00005f40| 61 6c 0a 20 20 69 66 20 | 74 56 65 72 74 69 63 61 |al. if |tVertica|
|00005f50| 6c 20 3e 20 6c 42 6f 74 | 74 6f 6d 20 74 68 65 6e |l > lBot|tom then|
|00005f60| 20 70 75 74 20 6c 42 6f | 74 74 6f 6d 20 69 6e 74 | put lBo|ttom int|
|00005f70| 6f 20 74 56 65 72 74 69 | 63 61 6c 0a 20 20 69 66 |o tVerti|cal. if|
|00005f80| 20 74 56 65 72 74 69 63 | 61 6c 20 3c 20 6c 54 6f | tVertic|al < lTo|
|00005f90| 70 20 74 68 65 6e 20 70 | 75 74 20 6c 54 6f 70 20 |p then p|ut lTop |
|00005fa0| 69 6e 74 6f 20 74 56 65 | 72 74 69 63 61 6c 0a 20 |into tVe|rtical. |
|00005fb0| 20 73 65 74 20 74 68 65 | 20 6c 6f 63 20 6f 66 20 | set the| loc of |
|00005fc0| 6d 65 20 74 6f 20 69 74 | 65 6d 20 31 20 6f 66 20 |me to it|em 1 of |
|00005fd0| 74 68 65 20 6c 6f 63 20 | 6f 66 20 6d 65 2c 20 74 |the loc |of me, t|
|00005fe0| 56 65 72 74 69 63 61 6c | 0a 20 20 73 65 74 20 74 |Vertical|. set t|
|00005ff0| 68 65 20 63 52 45 56 4c | 69 6e 65 20 6f 66 20 6d |he cREVL|ine of m|
|00006000| 65 20 74 6f 20 72 6f 75 | 6e 64 20 28 74 68 65 20 |e to rou|nd (the |
|00006010| 73 63 72 6f 6c 6c 20 6f | 66 20 66 6c 64 20 22 4d |scroll o|f fld "M|
|00006020| 65 6e 75 20 42 75 74 74 | 6f 6e 73 22 2f 67 52 45 |enu Butt|ons"/gRE|
|00006030| 56 54 65 78 74 48 65 69 | 67 68 74 29 20 2b 20 74 |VTextHei|ght) + t|
|00006040| 4c 69 6e 65 53 63 72 6f | 6c 6c 0a 20 20 73 65 74 |LineScro|ll. set|
|00006050| 20 74 68 65 20 63 52 45 | 56 4c 61 73 74 57 69 64 | the cRE|VLastWid|
|00006060| 67 65 74 4c 69 6e 65 20 | 6f 66 20 6d 65 20 74 6f |getLine |of me to|
|00006070| 20 65 6d 70 74 79 0a 65 | 6e 64 20 72 65 76 4d 6f | empty.e|nd revMo|
|00006080| 75 73 65 52 65 6c 65 61 | 73 65 64 0a 0a 6f 6e 20 |useRelea|sed..on |
|00006090| 6d 6f 75 73 65 44 6f 75 | 62 6c 65 55 70 0a 20 20 |mouseDou|bleUp. |
|000060a0| 69 66 20 74 68 65 20 6f | 77 6e 65 72 20 6f 66 20 |if the o|wner of |
|000060b0| 74 68 65 20 74 61 72 67 | 65 74 20 69 73 20 6e 6f |the targ|et is no|
|000060c0| 74 20 6d 65 20 74 68 65 | 6e 20 70 61 73 73 20 6d |t me the|n pass m|
|000060d0| 6f 75 73 65 44 6f 75 62 | 6c 65 55 70 0a 20 20 70 |ouseDoub|leUp. p|
|000060e0| 75 74 20 74 68 65 20 6e | 75 6d 20 6f 66 20 6c 69 |ut the n|um of li|
|000060f0| 6e 65 73 20 69 6e 20 66 | 6c 64 20 22 4d 65 6e 75 |nes in f|ld "Menu|
|00006100| 20 42 75 74 74 6f 6e 73 | 22 20 69 6e 74 6f 20 74 | Buttons|" into t|
|00006110| 4e 75 6d 4c 69 6e 65 73 | 0a 20 20 73 65 74 20 74 |NumLines|. set t|
|00006120| 68 65 20 6c 6f 63 20 6f | 66 20 6d 65 20 74 6f 20 |he loc o|f me to |
|00006130| 69 74 65 6d 20 31 20 6f | 66 20 74 68 65 20 6c 6f |item 1 o|f the lo|
|00006140| 63 20 6f 66 20 6d 65 2c | 20 6d 69 6e 28 6c 42 6f |c of me,| min(lBo|
|00006150| 74 74 6f 6d 2c 74 68 65 | 20 66 6f 72 6d 61 74 74 |ttom,the| formatt|
|00006160| 65 64 54 6f 70 20 6f 66 | 20 6c 69 6e 65 20 74 4e |edTop of| line tN|
|00006170| 75 6d 4c 69 6e 65 73 20 | 6f 66 20 66 6c 64 20 22 |umLines |of fld "|
|00006180| 4d 65 6e 75 20 42 75 74 | 74 6f 6e 73 22 20 2b 20 |Menu But|tons" + |
|00006190| 31 36 29 0a 20 20 73 65 | 74 20 74 68 65 20 73 63 |16). se|t the sc|
|000061a0| 72 6f 6c 6c 20 6f 66 20 | 66 6c 64 20 22 4d 65 6e |roll of |fld "Men|
|000061b0| 75 20 42 75 74 74 6f 6e | 73 22 20 74 6f 20 74 68 |u Button|s" to th|
|000061c0| 65 20 66 6f 72 6d 61 74 | 74 65 64 48 65 69 67 68 |e format|tedHeigh|
|000061d0| 74 20 6f 66 20 66 6c 64 | 20 22 4d 65 6e 75 20 42 |t of fld| "Menu B|
|000061e0| 75 74 74 6f 6e 73 22 0a | 20 20 73 65 74 20 74 68 |uttons".| set th|
|000061f0| 65 20 63 52 45 56 4c 69 | 6e 65 20 6f 66 20 6d 65 |e cREVLi|ne of me|
|00006200| 20 74 6f 20 74 4e 75 6d | 4c 69 6e 65 73 0a 20 20 | to tNum|Lines. |
|00006210| 70 61 73 73 20 6d 6f 75 | 73 65 44 6f 75 62 6c 65 |pass mou|seDouble|
|00006220| 55 70 0a 65 6e 64 20 6d | 6f 75 73 65 44 6f 75 62 |Up.end m|ouseDoub|
|00006230| 6c 65 55 70 0a 00 00 00 | 00 00 80 00 00 07 fc 03 |leUp....|........|
|00006240| 00 8d 00 15 00 00 00 03 | 13 63 52 45 56 4c 61 73 |........|.cREVLas|
|00006250| 74 57 69 64 67 65 74 4c | 69 6e 65 00 00 00 09 63 |tWidgetL|ine....c|
|00006260| 52 45 56 4c 69 6e 65 00 | 00 00 10 63 52 45 56 44 |REVLine.|...cREVD|
|00006270| 6f 6e 74 44 69 73 61 62 | 6c 65 00 00 04 74 72 75 |ontDisab|le...tru|
|00006280| 65 18 00 0c 63 52 45 56 | 47 65 6e 65 72 61 6c 00 |e...cREV|General.|
|00006290| 00 00 00 08 0f 73 63 72 | 69 70 74 43 68 65 63 6b |.....scr|iptCheck|
|000062a0| 73 75 6d 00 00 10 46 ea | 96 b0 80 60 7a ec cb 0f |sum...F.|...`z...|
|000062b0| cb fa f2 1d ae af 0c 72 | 65 76 55 6e 69 71 75 65 |.......r|evUnique|
|000062c0| 49 44 00 00 0c 39 36 35 | 30 35 32 38 32 39 37 34 |ID...965|05282974|
|000062d0| 35 0a 62 6f 6f 6b 6d 61 | 72 6b 73 00 00 00 0c 68 |5.bookma|rks....h|
|000062e0| 61 6e 64 6c 65 72 4c 69 | 73 74 00 00 47 6d 6f 75 |andlerLi|st..Gmou|
|000062f0| 73 65 44 6f 77 6e 0a 6d | 6f 75 73 65 55 70 0a 6d |seDown.m|ouseUp.m|
|00006300| 6f 75 73 65 52 65 6c 65 | 61 73 65 0a 6d 6f 75 73 |ouseRele|ase.mous|
|00006310| 65 4d 6f 76 65 0a 72 65 | 76 4d 6f 75 73 65 52 65 |eMove.re|vMouseRe|
|00006320| 6c 65 61 73 65 64 0a 6d | 6f 75 73 65 44 6f 75 62 |leased.m|ouseDoub|
|00006330| 6c 65 55 70 0b 74 65 6d | 70 53 63 72 69 70 74 00 |leUp.tem|pScript.|
|00006340| 00 00 0c 70 72 65 76 48 | 61 6e 64 6c 65 72 00 00 |...prevH|andler..|
|00006350| 09 6d 6f 75 73 65 44 6f | 77 6e 10 73 63 72 69 70 |.mouseDo|wn.scrip|
|00006360| 74 53 65 6c 65 63 74 69 | 6f 6e 00 00 0f 63 68 61 |tSelecti|on...cha|
|00006370| 72 20 36 35 34 20 74 6f | 20 36 35 33 07 73 63 72 |r 654 to| 653.scr|
|00006380| 69 70 74 00 00 00 12 00 | 00 13 18 00 00 00 00 4b |ipt.....|.......K|
|00006390| 06 00 01 00 01 f8 f8 98 | 98 60 60 00 00 80 00 00 |........|.``.....|
|000063a0| 0d fc 0b 00 7c 00 04 00 | 00 00 01 10 63 52 45 56 |....|...|....cREV|
|000063b0| 44 6f 6e 74 44 69 73 61 | 62 6c 65 00 00 04 74 72 |DontDisa|ble...tr|
|000063c0| 75 65 00 00 00 03 00 03 | 00 02 00 0f fc 0d 00 87 |ue......|........|
|000063d0| fc 0d 18 00 0c 63 52 45 | 56 47 65 6e 65 72 61 6c |.....cRE|VGeneral|
|000063e0| 00 00 00 00 07 0c 72 65 | 76 55 6e 69 71 75 65 49 |......re|vUniqueI|
|000063f0| 44 00 00 0c 39 36 35 30 | 35 32 38 32 39 37 34 38 |D...9650|52829748|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.